Module: RSpecApi::DSL::HttpClient
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/rspec-api/http_clients/empty.rb,
lib/rspec-api/http_clients/local.rb,
lib/rspec-api/http_clients/remote.rb
Instance Method Summary collapse
- #ciao ⇒ Object
- #last_response ⇒ Object
- #response ⇒ Object
- #send_request(verb, route, body, authorization) ⇒ Object
Instance Method Details
#ciao ⇒ Object
14 15 16 |
# File 'lib/rspec-api/http_clients/local.rb', line 14 def ciao end |
#last_response ⇒ Object
8 9 10 11 |
# File 'lib/rspec-api/http_clients/empty.rb', line 8 def last_response # To be overriden. status MUST be a number, headers MUST be a hash OpenStruct.new status: nil, headers: {} # body: nil, end |
#response ⇒ Object
23 24 25 |
# File 'lib/rspec-api/http_clients/local.rb', line 23 def response last_response end |
#send_request(verb, route, body, authorization) ⇒ Object
4 5 6 |
# File 'lib/rspec-api/http_clients/empty.rb', line 4 def send_request(verb, route, body, ) # To be overriden end |