Class: HttpStub::Server::Response
- Inherits:
-
Object
- Object
- HttpStub::Server::Response
- Defined in:
- lib/http_stub/server/response.rb
Constant Summary collapse
- SUCCESS =
success.freeze
- NOT_FOUND =
HttpStub::Server::Stub::Response::Text.new("status" => 404, "body" => "NOT FOUND").freeze
- EMPTY =
HttpStub::Server::Stub::Response::Text.new.freeze
Class Method Summary collapse
Class Method Details
.success(headers = {}) ⇒ Object
6 7 8 |
# File 'lib/http_stub/server/response.rb', line 6 def self.success(headers={}) HttpStub::Server::Stub::Response::Text.new("status" => 200, "headers" => headers, "body" => "OK") end |