Class: Blix::Rest::RawFormatParser
- Inherits:
-
FormatParser
- Object
- FormatParser
- Blix::Rest::RawFormatParser
- Defined in:
- lib/blix/rest/format_parser.rb
Overview
the default raw format parser
Instance Attribute Summary
Attributes inherited from FormatParser
#__custom_headers, #_format, #_options
Instance Method Summary collapse
Methods inherited from FormatParser
#_types, _types, accept_types, #set_default_headers
Instance Method Details
#format_error(message) ⇒ Object
def set_default_headers(headers)
#headers[CACHE_CONTROL]= CACHE_NO_STORE
#headers[PRAGMA] = NO_CACHE
end
105 106 107 |
# File 'lib/blix/rest/format_parser.rb', line 105 def format_error() end |
#format_response(value, response) ⇒ Object
109 110 111 112 |
# File 'lib/blix/rest/format_parser.rb', line 109 def format_response(value, response) value = [value.to_s] unless value.respond_to?(:each) || value.respond_to?(:call) response.content = value end |