A class that represents an HTTP request from a client.
The origin IP address of the request.
If true, the response lifecycle will not time out and send errors.
The cookie manager for the request.
Collection of factories registered with this container.
The fully-qualified URL of the request.
Collection of singleton instances produced by this container.
True if the request was made via XMLHttpRequest.
The media types accepted by the client.
The HTTP verb of the request.
Input parsed from the request
The URL path, stripped of query params.
The request HTTP protocol version.
The inferred query data.
The raw parsed query data from the request.
The associated response.
True if the request was made via TLS.
Files parsed from the request.
The URL suffix of the request.
Returns true if the request accepts the given media type.
a mimetype, or the short forms json, xml, or html
Get the UniversalPath instance for a file uploaded in the given field on the request.
Get a collection of dependency keys required by the given target, if it is registered with this container.
Get the value of a header, if it exists.
Get the value of an input field on the request. Spans multiple input sources.
Create an instance of the given target. The target can either be a DependencyKey registered with this container (in which case, the singleton value will be returned), or an instantiable class.
If the instantiable class has the Injectable decorator, its injectable parameters will be automatically injected into the instance.
Given a factory and manually-provided parameters, resolve the dependencies for the factory and produce its value.
Purge all factories and instances of the given key from this container.
Register the given function as a factory within the container.
unique name to identify the factory in the container
factory to produce a value
Register a value as a singleton in the container. It will not be instantiated, but can be injected by its unique name.
unique name to identify the singleton in the container
Register a static class to the container along with its already-instantiated instance that will be used to resolve the class.
Remove all stored instances of the given key from this container.
Resolve the dependency key. If a singleton value for that key already exists in this container, return that value. Otherwise, use the factory an given parameters to produce and return the value.
Get the native Node.js IncomingMessage object.
Returns the short form of the content type the client has requested.
Execute a closure on this container, disabling parent-resolution. Effectively, the closure will have access to this container as if it were NOT a scoped container, and only contained its factories.
Get the global instance of this container.