An address the service is bound to.
HTTP server instance.
Static
startStarts new test HTTP server and binds it ro random port ad localhost.
A promise resolved to started server.
Starts to handle extended incoming requests by the given request handler.
Request processing means extension type.
HTTP processing configuration.
New HTTP request processing handler.
this
instance.
Starts to handle incoming requests by the given request handler.
HTTP processing configuration.
New HTTP request processing handler.
this
instance.
Starts to handle incoming requests by the given request handler according to default configuration.
New HTTP request processing handler.
this
instance.
Starts to handle incoming requests by the given request listener.
New HTTP request listener.
this
instance.
Posts the data to the test server.
Request path.
Optional
body: string | BufferRequest body to post, or undefined
to post nothing.
Optional
options: RequestOptionsRequest options. The default request method is POST
.
A promise resolves to server response.
Generated using TypeDoc
Testing HTTP server and client.