class HTTParty::Logger::LogstashFormatter

def content_length

def content_length
  @content_length ||= response.respond_to?(:headers) ? response.headers['Content-Length'] : response['Content-Length']
end