SimpleHttpResult
Description
Represents the result of a HTTP/HTTPS request.
The string representation is '(CODE) TEXT'
, where CODE
is the value of StatusCode and TEXT
is the value of StatusText. If StatusCode is 0
, then CODE
will be set to -N-1
, where N
is the ordinal value of ErrorCode.
- See also
Public / Constructors
Public / Attributes
ErrorCode
The non-protocol error that has occurred.
If StatusCode is equal to 0
, this value describes the non-protocol error that has occurred. Otherwise, this value has no meaning and will be set to IOError.Other.
IsSuccess
Does this SimpleHttpResult value represent a successful HTTP request?
A successful HTTP request in this context means that the requested information has been received from the server (i.e. HEAD metadata or GET content).
Length
Length of the content, in bytes.
This is the number of received content bytes. Will be equal to the value of the Content-Length
HTTP response header field (if it was present) successful requests and 0
for non-successful requests.
- See also
ShouldTryAgain
Does this SimpleHttpResult represent a temporary failure that might be resolved by trying again?