TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct SimpleHttpResult in Tinman.Core.IO

struct SimpleHttpResult  

Public / Attributes

ContentType

Value of the Content-Type HTTP response header field.

public readonly field ContentType
type string

Error

The non-protocol error that has occurred.

public readonly field Error
type IOError

Remarks:

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 Other.

IsSuccess

Does this SimpleHttpResult value represent a successful HTTP request?

public property IsSuccess { get }
type bool
value true if the HTTP request was successful, false if it has failed.

Length

Length of the content, in bytes.

public readonly field Length
type int64

Remarks:

This is the number of received content bytes. Will be equal to the value of the Content-Length HTTP response header field, if it is present (it may be omitted in some cases, for example when using HTTP Chunked Transfer Coding).

StatusCode

The HTTP status code or 0 for non-protocol errors (see Error).

public readonly field StatusCode
type int32

StatusText

The HTTP status text.

public readonly field StatusText
type string

Time

The total time of the request, in milliseconds.

public readonly field Time
type int32

Public / Methods

ToString

public override method ToString ()
type string