Class: Response::HTML
Overview
HTML response
Constant Summary collapse
- HEADERS =
IceNine.deep_freeze('Content-Type' => 'text/html; charset=UTF-8')
Constants inherited from Response
Instance Attribute Summary
Attributes inherited from Response
Class Method Summary collapse
-
.build(body) ⇒ Response::HTML
Build html 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::HTML
Build html response with defaults
32 33 34 |
# File 'lib/response/html.rb', line 32 def self.build(body) super(Status::OK, HEADERS, body) end |