HTTPRequest

HTTP request object spawned by HTTPServer.

client(readonly)

  • Type: Object

An object that describes the connected client.

data(readonly)

  • Type: None

The data (utf-8') that was received by the server.

headers(readonly)

  • Type: Object

An object of key/value pairs describing the headers.

method(readonly)

  • Type: String

Http request Method that was received. Can be 'POST'|'GET'|'PUT'|'DELETE'|'UNKNOWN'.

url(readonly)

  • Type: String

The url that was requested.


Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!