class ElasticAPM::Context::Response

@api private

Attributes

finished[RW]
headers[R]
headers_sent[RW]
status_code[RW]

Public Class Methods

new( status_code, headers: {}, headers_sent: true, finished: true ) click to toggle source
# 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

Public Instance Methods

headers=(headers) click to toggle source
# File lib/elastic_apm/context/response.rb, line 40
def headers=(headers)
  @headers = headers&.transform_values { |v| v.to_s }
end