Class: ActionController::Live::Response
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
self,
::ActionDispatch::Response,
MonitorMixin,
::ActionDispatch::Http::Cache::Response,
::ActionDispatch::Http::FilterRedirect,
Rack::Response::Helpers
|
|
| Inherits: |
ActionDispatch::Response
|
| Defined in: | actionpack/lib/action_controller/metal/live.rb |
Constant Summary
::ActionDispatch::Http::FilterRedirect - Included
::ActionDispatch::Http::Cache::Response - Included
DATE, DEFAULT_CACHE_CONTROL, IMMUTABLE, LAST_MODIFIED, MUST_REVALIDATE, MUST_UNDERSTAND, NO_CACHE, NO_STORE, PRIVATE, PUBLIC, SPECIAL_KEYS
::ActionDispatch::Response - Inherited
CONTENT_TYPE, CONTENT_TYPE_PARSER, Header, NO_CONTENT_CODES, NullContentTypeHeader, SET_COOKIE
Class Attribute Summary
::ActionDispatch::Response - Inherited
Class Method Summary
::ActionDispatch::Response - Inherited
| .create, .merge_default_headers, .new, | |
| .rack_status_code | See additional method definition at line 51. |
Instance Attribute Summary
::ActionDispatch::Response - Inherited
| #body | Returns the content of the response as a string. |
| #body= | Allows you to manually set or override the response body. |
| #charset | The charset of the response. |
| #charset= | Sets the HTTP character set. |
| #committed?, | |
| #content_type | Content type of response. |
| #content_type= | Sets the HTTP response’s content MIME type. |
| #default_charset, #default_headers, | |
| #header | Alias for ActionDispatch::Response#headers. |
| #headers | The headers for the response. |
| #request | The request that the response is responding to. |
| #sending?, #sending_file=, #sent?, | |
| #status | The HTTP status code. |
| #status= | Sets the HTTP status code. |
| #stream | The underlying body, as a streamable object. |
::ActionDispatch::Http::Cache::Response - Included
| #cache_control, #date, #date=, #date?, | |
| #etag= | This method sets a weak ETag validator on the response so browsers and proxies may cache the response, keyed on the ETag. |
| #etag?, #last_modified, #last_modified=, #last_modified?, #strong_etag=, | |
| #strong_etag? | True if an ETag is set, and it isn’t a weak validator (not preceded with |
| #weak_etag=, | |
| #weak_etag? | True if an ETag is set, and it’s a weak validator (preceded with |
::ActionDispatch::Http::FilterRedirect - Included
Instance Method Summary
- #before_committed private
- #build_buffer(response, body) private
::ActionDispatch::Response - Inherited
| #[], #[]=, | |
| #_cache_control | Aliasing these off because |
| #_cache_control=, #abort, #await_commit, #await_sent, #body_parts, #close, | |
| #code | Returns a string to ensure compatibility with |
| #commit!, | |
| #cookies | Returns the response cookies, converted to a |
| #delete_header, #each, #get_header, #handle_no_content!, #has_header?, | |
| #location | Location of the response. |
| #location= | Sets the location of the response. |
| #media_type | Media type of response. |
| #message | Returns the corresponding message for the current HTTP status code: |
| #prepare! | Alias for ActionDispatch::Response#to_a. |
| #rack_response, | |
| #redirect_url | Alias for ActionDispatch::Response#location. |
| #reset_body!, | |
| #response_code | The response code of the request. |
| #send_file | Send the file stored at |
| #sending!, #sent!, #set_header, | |
| #status_message | Alias for ActionDispatch::Response#message. |
| #to_a | Turns the |
| #write, #assign_default_content_type_and_charset!, #before_committed, #before_sending, #build_buffer, | |
| #parsed_content_type_header | Small internal convenience method to get the parsed version of the current content type header. |
| #set_content_type, #parse_content_type | |
::ActionDispatch::Http::Cache::Response - Included
| #cache_control_headers, #cache_control_segments, #generate_strong_etag, #generate_weak_etag, #handle_conditional_get!, #merge_and_normalize_cache_control!, #prepare_cache_control! |
::ActionDispatch::Http::FilterRedirect - Included
Constructor Details
This class inherits a constructor from ActionDispatch::Response
Instance Method Details
#before_committed (private)
[ GitHub ]# File 'actionpack/lib/action_controller/metal/live.rb', line 252
def before_committed super jar = request. # The response can be committed multiple times jar.write self unless committed? end