Class: Response::Text
Overview
TEXT response
Constant Summary collapse
- HEADERS =
IceNine.deep_freeze('Content-Type' => 'text/plain; charset=UTF-8')
Constants inherited from Response
Instance Attribute Summary
Attributes inherited from Response
Class Method Summary collapse
-
.build(body) ⇒ Response::Text
Build text response with defaults.
Methods inherited from Response
#cache_control, #content_type, #last_modified, #merge_headers, #rack_array, #to_rack_response, #valid?, #with_body, #with_headers, #with_status
Class Method Details
.build(body) ⇒ Response::Text
Build text response with defaults
32 33 34 |
# File 'lib/response/text.rb', line 32 def self.build(body) super(Status::OK, HEADERS, body) end |