88require "async/http/endpoint"
99
1010require "protocol/http/accept_encoding"
11- require "protocol/http /reference"
11+ require "protocol/url /reference"
1212
1313module Async
1414 module REST
@@ -20,9 +20,9 @@ class Resource < ::Protocol::HTTP::Middleware
2020
2121 # Connect to the given endpoint, returning the HTTP client and reference.
2222 # @parameter endpoint [Async::HTTP::Endpoint] used to connect to the remote system and specify the base path.
23- # @returns [Tuple(Async::HTTP::Client, ::Protocol::HTTP ::Reference)] the client and reference.
23+ # @returns [Tuple(Async::HTTP::Client, ::Protocol::URL ::Reference)] the client and reference.
2424 def self . connect ( endpoint )
25- reference = ::Protocol ::HTTP ::Reference . parse ( endpoint . path )
25+ reference = ::Protocol ::URL ::Reference . parse ( endpoint . path )
2626
2727 return ::Protocol ::HTTP ::AcceptEncoding . new ( HTTP ::Client . new ( endpoint ) ) , reference
2828 end
@@ -54,9 +54,9 @@ def self.with(parent, headers: {}, **options)
5454 end
5555
5656 # @parameter delegate [Async::HTTP::Middleware] the delegate that will handle requests.
57- # @parameter reference [::Protocol::HTTP ::Reference] the resource identifier (base request path/parameters).
57+ # @parameter reference [::Protocol::URL ::Reference] the resource identifier (base request path/parameters).
5858 # @parameter headers [::Protocol::HTTP::Headers] the default headers that will be supplied with the request.
59- def initialize ( delegate , reference = ::Protocol ::HTTP ::Reference . parse , headers = ::Protocol ::HTTP ::Headers . new )
59+ def initialize ( delegate , reference = ::Protocol ::URL ::Reference . parse , headers = ::Protocol ::HTTP ::Headers . new )
6060 super ( delegate )
6161
6262 @reference = reference
0 commit comments