Class: HttpStub::Server::StubResponse::Text
- Defined in:
- lib/http_stub/server/stub_response/text.rb
Instance Attribute Summary
Attributes inherited from Base
#body, #delay_in_seconds, #headers, #status
Instance Method Summary collapse
Methods inherited from Base
add_default_headers, #empty?, #initialize, merge_defaults, #to_s
Constructor Details
This class inherits a constructor from HttpStub::Server::StubResponse::Base
Instance Method Details
#serve_on(server) ⇒ Object
9 10 11 |
# File 'lib/http_stub/server/stub_response/text.rb', line 9 def serve_on(server) server.halt(@status, @headers.to_hash, @body) end |