Virtual Serial Port Tools - Advanced serial port configurations for your custom ports usage scenario
Download Virtual Serial Port Tools Hide this button

IHttpResponse Interface

This interface is implemented by an HTTP response object, returned by methods of IHttpClient interface.

Declaration

interface IHttpResponse {
    // Properties
    readonly ${statusCode}: number;
    readonly ${isSuccessful}: boolean;
    readonly ${content}: Promise<string>;
    readonly ${blob}: Promise<Uint8Array>;
    readonly ${stream}: Promise<${IInputStream}>;
}
// This interface is not available in managed environment
// This interface is not available in native environment

IHttpResponse Properties

statusCode

readonly statusCode: number;
// This property is not available in managed environment
// This property is not available in native environment

HTTP status code.

isSuccessful

readonly isSuccessful: boolean;
// This property is not available in managed environment
// This property is not available in native environment

True if statusCode is between 200 and 299 inclusive.

content

readonly content: Promise<string>;
// This property is not available in managed environment
// This property is not available in native environment

HTTP Response content, encoded as string.

blob

readonly blob: Promise<Uint8Array>;
// This property is not available in managed environment
// This property is not available in native environment

HTTP Response content, as a byte array.

stream

readonly stream: Promise<${IInputStream}>;
// This property is not available in managed environment
// This property is not available in native environment

HTTP Response content stream.