Class: HTTP::URIBuilder
- Inherits:
-
Object
- Object
- HTTP::URIBuilder
- Defined in:
- lib/http_client/client.rb
Instance Method Summary collapse
- #create_uri(path, query_string = nil) ⇒ Object
-
#initialize(protocol, host, port, base_path) ⇒ URIBuilder
constructor
A new instance of URIBuilder.
Constructor Details
#initialize(protocol, host, port, base_path) ⇒ URIBuilder
Returns a new instance of URIBuilder.
195 196 197 198 199 200 |
# File 'lib/http_client/client.rb', line 195 def initialize(protocol, host, port, base_path) @protocol = protocol @host = host @port = port @base_path = base_path end |
Instance Method Details
#create_uri(path, query_string = nil) ⇒ Object
202 203 204 |
# File 'lib/http_client/client.rb', line 202 def create_uri(path, query_string = nil) URIUtils.create_uri(@protocol, @host, @port, "#{@base_path}#{path}", query_string, nil) end |