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