Class: HTTP::Session::Client
- Inherits:
-
Object
- Object
- HTTP::Session::Client
- Includes:
- Perform
- Defined in:
- lib/http/session/client.rb,
lib/http/session/client/perform.rb
Defined Under Namespace
Modules: Perform
Constant Summary
Constants included from Perform
Instance Attribute Summary
Attributes included from Perform
Instance Method Summary collapse
-
#initialize(default_options, session) ⇒ Client
constructor
A new instance of Client.
-
#request(verb, uri, opts, ctx) ⇒ Response
Make an HTTP request.
Methods included from Perform
#close, #httprb_initialize, #httprb_perform
Constructor Details
#initialize(default_options, session) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/http/session/client.rb', line 7 def initialize(, session) httprb_initialize() @session = session end |
Instance Method Details
#request(verb, uri, opts, ctx) ⇒ Response
Make an HTTP request.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/http/session/client.rb', line 19 def request(verb, uri, opts, ctx) opts = .merge(opts) opts = (uri, opts) req = _hs_build_request(verb, uri, opts, ctx) res = _hs_perform(req, opts) (res) res end |