require 'raven/interface'

module Raven
  class HttpInterface < Interface
    attr_accessor :url, :method, :data, :query_string, :cookies, :headers, :env

    def initialize(*arguments)
      self.headers = {}
      self.env = {}
      self.cookies = nil
      super(*arguments)
    end

    def self.sentry_alias
      :request
    end
  end
end
