Create the routes for all classes decorated with our decorators
Return the set oh HTTP verbs configured for the given path
The path to search HTTP verbs
Return all paths accepted by the Server
Register a custom serviceFactory. It will be used to instantiate the service Objects If You plan to use a custom serviceFactory, You must ensure to call this method before any typescript-rest service declaration.
Specifies a function that will be used to decode a cookie's value. This function can be used to decode a previously-encoded cookie value into a JavaScript string. The default function is the global decodeURIComponent, which will decode any URL-encoded sequences into their byte representations.
NOTE: if an error is thrown from this function, the original, non-decoded cookie value will be returned as the cookie's value.
The decoder function
A string used for signing cookies. This is optional and if not specified, will not parse signed cookies.
the secret used to sign
Set where to store the uploaded files
Destination folder
Set a Function to control which files are accepted to upload
The filter function
Set the limits of uploaded data
The data limit
Creates and endpoint to publish the swagger documentation.
Express router
the path to a swagger file (json or yaml)
where to publish the docs
the hostname of the service
the schemes used by the server
Configure the Server to use typescript-ioc to instantiate the service objects. If You plan to use IoC, You must ensure to call this method before any typescript-rest service declaration.
Generated using TypeDoc
The Http server main class.