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
)contentThe result content.
retryIf request should be resent.
err_msgError message.
statusHTTP status.
status_msgStatus message.
retry_afterTime after which to retry.
locationNew 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)deepWhether to make a deep clone.
Represents the result of a request.