class Blix::Rest::HtmlFormatParser

Public Instance Methods

format_error(message) click to toggle source
# File lib/blix/rest/format_parser.rb, line 151
def format_error(message)
  %(
    <html>
    <head></head>
    <body>
    <p>#{message}</p>
    </body>
    </html>
  )
end
format_response(value, response) click to toggle source
# File lib/blix/rest/format_parser.rb, line 162
def format_response(value, response)
  response.content = value.to_s
end
set_default_headers(headers) click to toggle source
# File lib/blix/rest/format_parser.rb, line 145
def set_default_headers(headers)
  headers[CACHE_CONTROL] = CACHE_NO_STORE
  headers[PRAGMA]       = NO_CACHE
  headers[CONTENT_TYPE] = CONTENT_TYPE_HTML
end