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

HTTPRequest

Extends:

Event → HTTPRequest

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

Constructor Summary

Public Constructor
public

constructor(body: String, direction: String, headers: Array, host: String, method: String, path: String, port: Number, query_string: String, request_id: String, scheme: String)

Member Summary

Public Members
public

body: *

public
public

headers: *

public

host: *

public

method: *

public

path: *

public

port: *

public
public
public

scheme: *

Method Summary

Public Methods
public

Public Constructors

public constructor(body: String, direction: String, headers: Array, host: String, method: String, path: String, port: Number, query_string: String, request_id: String, scheme: 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

host String

the server's hostname

method String

CONNECT DELETE GET HEAD OPTIONS PATCH POST PUT TRACE

path String
  • optional

the path of the request

port Number
  • optional

the port of the request

query_string String
  • optional

the query parameters present on the url

request_id String
  • optional

the uuid attached to the request

scheme String

HTTP or HTTPS

Public Members

public body: * source

public direction: * source

public headers: * source

public host: * source

public method: * source

public path: * source

public port: * source

public query_string: * source

public request_id: * source

public scheme: * source

Public Methods

public message(): string source

Return:

string