class HTTParty::Request

def format

def format
  options[:format] || (format_from_mimetype(last_response['content-type']) if last_response)
end