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.
Hash
A digest of the ETag and the Last-Modified HTTP response header fields.
The digest is computed with GUID.Digest1 from the ETag header field, if present. Otherwise, the digest is computed from the Last-Modified header field, if present. Otherwise, the digest is set to GUID.Zero.
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).
LastModified
Value of the Last-Modified HTTP response header field or Timestamp.Invalid if not present.
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) for 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?