Home Reference Source
import HTTPResponse from 'timber/src/events/http_response.js'
public class | source

HTTPResponse

Extends:

Event → HTTPResponse

The HTTP server request event tracks incoming HTTP requests to your HTTP server.

Constructor Summary

Public Constructor
public

constructor(body: String, direction: String, headers: Array, request: Object, request_id: String, status: String, time_ms: String)

Member Summary

Public Members
public

body: *

public
public

headers: *

public

request: *

public
public

status: *

public

time_ms: *

Method Summary

Public Methods
public

message(): *

Public Constructors

public constructor(body: String, direction: String, headers: Array, request: Object, request_id: String, status: String, time_ms: String) source

Params:

NameTypeAttributeDescription
body String
  • optional

the body of the request

direction String
  • optional

incoming or outgoing

headers Array
  • optional

the headers of the request

request Object
  • optional

the request object (only set if combine_http_events is true)

request_id String
  • optional

the uuid of the request

status String

the HTTP status code

time_ms String

the total duration of the request in milliseconds

Public Members

public body: * source

public direction: * source

public headers: * source

public request: * source

public request_id: * source

public status: * source

public time_ms: * source

Public Methods

public message(): * source

Return:

*