class Blix::Rest::XmlFormatParser

Public Instance Methods

format_error(message) click to toggle source
# File lib/blix/rest/format_parser.rb, line 128
def format_error(message)
  "<error>#{message}</error>"
end
format_response(value, response) click to toggle source
# File lib/blix/rest/format_parser.rb, line 132
def format_response(value, response)
  response.content = value.to_s # FIXME
end
set_default_headers(headers) click to toggle source
# File lib/blix/rest/format_parser.rb, line 122
def set_default_headers(headers)
  headers[CACHE_CONTROL] = CACHE_NO_STORE
  headers[PRAGMA]       = NO_CACHE
  headers[CONTENT_TYPE] = CONTENT_TYPE_XML
end