Request | R Documentation |
This class consolidates information on an http request received by the server Its main purpose is to pass this object to a Route callback function.
path
Is a string that is the request path.
method
is a string that is the request method
content_type
is a string that is the content type
body
is the request body
query_list
is an R named list of request query variables and their respective values
new()
Create a Request object
Request$new( path = NULL, method = NULL, content_type = NULL, body = NULL, query_list = NULL )
path
http request path
method
http request method
content_type
http request content_type
body
http request body
query_list
http request query string as an R named list with query variables and their respective values
A new 'Request' object
clone()
The objects of this class are cloneable with this method.
Request$clone(deep = FALSE)
deep
Whether to make a deep clone.
Rick Dean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.