IRequest
the request object inherits from http.ClientRequest
#
Usage#
req.queryquery params object
#
req.bodybody parser params object
#
req.paramsroute params object
#
req.hostnamehost name of the request
#
req.pathpath name of the request
#
req.secureboolean true is the request is https
#
req.protocolprotocol of the request http or https
#
req.fullUrlreturn full url with protocol hostname and path
#
req.ipreturn request ip
#
req.modelif validation defined on the route will return the validation model
#
req.appinstance of the appolo app
#
req.get(name:string)#
req.header(name:string)Returns the specified HTTP request header
#
req.is(type:string)Returns the matching content type if the incoming request’s “Content-Type” HTTP header field matches the MIME type specified by the type parameter. If the request has no body, returns null. Returns false otherwise.