A request.
HEADERSHeaders from the request.
HTTP_ACCEPTContent types to accept.
HTTP_ACCEPT_ENCODINGEncoding of the request.
HTTP_ACCEPT_LANGUAGELanguage of the request.
HTTP_CACHE_CONTROLDirectorives for the cache (case-insensitive).
HTTP_CONNECTIONControls whether the network connection stays open after the current transaction finishes.
HTTP_COOKIECookie data.
HTTP_HOSTHost making the request.
HTTP_SEC_FETCH_DESTIndicates the request's destination. That is the initiator of the original fetch request, which is where (and how) the fetched data will be used.
HTTP_SEC_FETCH_MODEIndicates mode of the request.
HTTP_SEC_FETCH_SITEIndicates the relationship between a request initiator's origin and the origin of the requested resource.
HTTP_SEC_FETCH_USEROnly sent for requests initiated by user activation, and its value will always be ?1.
HTTP_UPGRADE_INSECURE_REQUESTSSignals that server supports upgrade.
HTTP_USER_AGENTUser agent.
httpuv.versionVersion of httpuv.
PATH_INFOPath of the request.
QUERY_STRINGQuery string of the request.
REMOTE_ADDRRemote address.
REMOTE_PORTRemote port.
REQUEST_METHODMethod of the request, e.g.: GET.
rook.errorsErrors from rook.
rook.inputRook inputs.
rook.url_schemeRook url scheme.
rook.versionRook version.
SCRIPT_NAMEThe initial portion of the request URL's "path" that corresponds to the application object, so that the application knows its virtual "location".
SERVER_NAMEServer name.
SERVER_PORTServer port
CONTENT_LENGTHSize of the message body.
CONTENT_TYPEType of content of the request.
HTTP_REFERERContains an absolute or partial address of the page that makes the request.
bodyRequest, an environment.
queryParsed QUERY_STRING, list.
paramsA list of parameters.
cookieParsed HTTP_COOKIE.
new()Request$new(req)
reqOriginal request (environment).
Constructor
print()Request$print()
set()Request$set(name, value)
nameName of the variable.
valueValue of the variable.
Set Data
Invisible returns self.
get()Request$get(name)
nameName of the variable to get.
Get data
get_header()Request$get_header(name)
nameName of the header
Get Header
parse_multipart()Request$parse_multipart()
Parse Multipart encoded data
parse_json()Request$parse_json(...)
...Arguments passed to jsonlite::fromJSON().
Parse JSON encoded data
clone()The objects of this class are cloneable with this method.
Request$clone(deep = FALSE)
deepWhether to make a deep clone.