Class: Rack::Chunked::Body
- Inherits:
-
Object
- Object
- Rack::Chunked::Body
- Includes:
- Utils
- Defined in:
- lib/rack/chunked.rb
Overview
A body wrapper that emits chunked responses
Constant Summary collapse
Constants included from Utils
Utils::COMMON_SEP, Utils::DEFAULT_SEP, Utils::ESCAPE_HTML, Utils::ESCAPE_HTML_PATTERN, Utils::HTTP_STATUS_CODES, Utils::InvalidParameterError, Utils::KeySpaceConstrainedParams, Utils::NULL_BYTE, Utils::PATH_SEPS, Utils::ParameterTypeError, Utils::STATUS_WITH_NO_ENTITY_BODY, Utils::SYMBOL_TO_STATUS_CODE
Instance Method Summary collapse
- #close ⇒ Object
- #each {|TAIL| ... } ⇒ Object
-
#initialize(body) ⇒ Body
constructor
A new instance of Body.
Methods included from Utils
add_cookie_to_header, add_remove_cookie_to_header, best_q_match, build_nested_query, build_query, byte_ranges, clean_path_info, clock_time, delete_cookie_header!, escape, escape_html, escape_path, get_byte_ranges, key_space_limit, key_space_limit=, make_delete_cookie_header, param_depth_limit, param_depth_limit=, parse_cookies, parse_cookies_header, parse_nested_query, parse_query, q_values, rfc2109, rfc2822, secure_compare, select_best_encoding, set_cookie_header!, status_code, unescape, unescape_path, valid_path?
Constructor Details
#initialize(body) ⇒ Body
Returns a new instance of Body.
17 18 19 |
# File 'lib/rack/chunked.rb', line 17 def initialize(body) @body = body end |
Instance Method Details
#close ⇒ Object
33 34 35 |
# File 'lib/rack/chunked.rb', line 33 def close @body.close if @body.respond_to?(:close) end |