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

HTTPServerResponse

Extends:

Event → HTTPServerResponse

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

Constructor Summary

Public Constructor
public

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

Member Summary

Public Members
public

body: *

public

headers: *

public
public

status: *

public

time_ms: *

Method Summary

Public Methods
public

message(): *

Public Constructors

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

Params:

NameTypeAttributeDescription
body String
  • optional

the body of the request

headers Array
  • optional

the headers of the request

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 headers: * source

public request_id: * source

public status: * source

public time_ms: * source

Public Methods

public message(): * source

Return:

*