Class: Rack::Response::Raw
- Inherits:
-
Object
- Object
- Rack::Response::Raw
show all
- Includes:
- Helpers
- Defined in:
- lib/rack/response.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Helpers
#accepted?, #add_header, #bad_request?, #cache_control, #cache_control=, #client_error?, #content_length, #content_type, #created?, #delete_cookie, #etag, #etag=, #forbidden?, #include?, #informational?, #invalid?, #location, #location=, #media_type, #media_type_params, #method_not_allowed?, #moved_permanently?, #no_content?, #not_found?, #ok?, #precondition_failed?, #redirect?, #redirection?, #server_error?, #set_cookie, #set_cookie_header, #set_cookie_header=, #successful?, #unauthorized?, #unprocessable?
Constructor Details
#initialize(status, headers) ⇒ Raw
224
225
226
227
|
# File 'lib/rack/response.rb', line 224
def initialize status,
@status = status
=
end
|
Instance Attribute Details
Returns the value of attribute headers.
221
222
223
|
# File 'lib/rack/response.rb', line 221
def
end
|
#status ⇒ Object
Returns the value of attribute status.
222
223
224
|
# File 'lib/rack/response.rb', line 222
def status
@status
end
|
Instance Method Details
232
|
# File 'lib/rack/response.rb', line 232
def (key); .delete key; end
|
230
|
# File 'lib/rack/response.rb', line 230
def (key); [key]; end
|
229
|
# File 'lib/rack/response.rb', line 229
def (key); .key? key; end
|
231
|
# File 'lib/rack/response.rb', line 231
def (key, v); [key] = v; end
|