Module: Redisse::Server::Responses Private
- Included in:
- Redisse::Server
- Defined in:
- lib/redisse/server/responses.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary (collapse)
- - (Object) not_acceptable private
- - (Object) not_found private
- - (Object) plain_response(message = nil, code) private
- - (Object) service_unavailable private
Instance Method Details
- (Object) not_acceptable
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 |
# File 'lib/redisse/server/responses.rb', line 8 def not_acceptable plain_response "406 Not Acceptable\n" \ "This resource can only be represented as text/event-stream.\n", 406 end |
- (Object) not_found
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/redisse/server/responses.rb', line 14 def not_found plain_response 404 end |
- (Object) plain_response(message = nil, code)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3 4 5 6 |
# File 'lib/redisse/server/responses.rb', line 3 def plain_response( = nil, code) ||= "#{code} #{Goliath::HTTP_STATUS_CODES.fetch(code)}\n" Rack::Response.new(, code, 'Content-Type' => 'text/plain') end |
- (Object) service_unavailable
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/redisse/server/responses.rb', line 18 def service_unavailable plain_response 503 end |