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.
This interface is implemented by an HTTP response object, returned by methods of IHttpClient interface.
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
readonly statusCode: number;
// This property is not available in managed environment
// This property is not available in native environment
HTTP status code.
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.
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.
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.
readonly stream: Promise<${IInputStream}>;
// This property is not available in managed environment
// This property is not available in native environment
HTTP Response content stream.