Class RequestResult.
Class RequestResult.
new()
New instance initializer.
RequestResult$new(
content = NULL,
retry = FALSE,
err_msg = NULL,
status = 0,
status_msg = "",
retry_after = NULL,
location = NULL
)
content
The result content.
retry
If request should be resent.
err_msg
Error message.
status
HTTP status.
status_msg
Status message.
retry_after
Time after which to retry.
location
New location.
Nothing.
getContent()
Get content.
RequestResult$getContent()
The content as a character value or NULL.
getRetry()
Get the retry flag.
RequestResult$getRetry()
TRUE if the URL request should be sent again, FALSE otherwise.
getErrMsg()
Get the error message.
RequestResult$getErrMsg()
The error message as a character value or NULL.
getStatus()
Get the HTTP status of the response.
RequestResult$getStatus()
The status as an integer.
getRetryAfter()
Get the time to wait before retrying.
RequestResult$getRetryAfter()
The time.
getLocation()
Get the redirect location.
RequestResult$getLocation()
The redirect location as a character value or NULL.
processRequestErrors()
Process possible HTTP error.
RequestResult$processRequestErrors()
Nothing.
clone()
The objects of this class are cloneable with this method.
RequestResult$clone(deep = FALSE)
deep
Whether to make a deep clone.
Represents the result of a request.