Class: RequestContext

RequestContext(server, context) → {RequestContext}

The context of the request.

Constructor

new RequestContext(server, context) → {RequestContext}

Parameters:
Name Type Description
server OrigamiServer The server which was responsible for catching this request
context object Additional context metadata
Source:
Returns:
Type
RequestContext

Members

bake

Bake a component by its include key.
Source:

GetApp

Get the app of this request.
Source:

getHead

Get a header from the request by its key.
Source:

getKey

Get the key of an include by the include name.
Source:

getQuery

Get a query string param by its key name.
Source:

getRequest

Get the original request object of this request.
Source:

GetServer

Get the server of this request.
Source:

getTypeName

Get the type name (component name) of an include by the include name.
Source:

new

Bake an anonymous instance of a component by its name, with a null key.
Source: