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

HTTPServerRequest

Extends:

Event → HTTPServerRequest

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

Constructor Summary

Public Constructor
public

constructor(body: 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

headers: *

public

host: *

public

message: *

public

method: *

public

path: *

public

port: *

public
public
public

scheme: *

Public Constructors

public constructor(body: 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

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

public host: * source

public message: * source

public method: * source

public path: * source

public port: * source

public query_string: * source

public request_id: * source

public scheme: * source