Class: Raven::HttpInterface

Inherits:
Interface show all
Includes:
RackInterface
Defined in:
lib/raven/interfaces/http.rb,
lib/raven/integrations/rack.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RackInterface

#from_rack

Methods inherited from Interface

inherited, registered, #to_hash

Constructor Details

#initialize(*arguments) ⇒ HttpInterface

Returns a new instance of HttpInterface.



5
6
7
8
9
10
# File 'lib/raven/interfaces/http.rb', line 5

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

Instance Attribute Details

#cookiesObject

Returns the value of attribute cookies.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def cookies
  @cookies
end

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def data
  @data
end

#envObject

Returns the value of attribute env.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def env
  @env
end

#headersObject

Returns the value of attribute headers.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def headers
  @headers
end

#methodObject

Returns the value of attribute method.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def method
  @method
end

#query_stringObject

Returns the value of attribute query_string.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def query_string
  @query_string
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/raven/interfaces/http.rb', line 3

def url
  @url
end

Class Method Details

.sentry_aliasObject



12
13
14
# File 'lib/raven/interfaces/http.rb', line 12

def self.sentry_alias
  :request
end