Class: ElasticAPM::Context::Response Private

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_apm/context/response.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, headers: {}, headers_sent: true, finished: true) ⇒ Response

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Response.



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/elastic_apm/context/response.rb', line 24

def initialize(
  status_code,
  headers: {},
  headers_sent: true,
  finished: true
)
  @status_code = status_code
  @headers_sent = headers_sent
  @finished = finished

  self.headers = headers
end

Instance Attribute Details

#finishedObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
# File 'lib/elastic_apm/context/response.rb', line 37

def finished
  @finished
end

#headersObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



38
39
40
# File 'lib/elastic_apm/context/response.rb', line 38

def headers
  @headers
end

#headers_sentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
# File 'lib/elastic_apm/context/response.rb', line 37

def headers_sent
  @headers_sent
end

#status_codeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
# File 'lib/elastic_apm/context/response.rb', line 37

def status_code
  @status_code
end