@aws-cdk_integ-tests-alpha.HttpResponse

interface HttpResponse ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.IntegTests.Alpha.HttpResponse
Gogithub.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#HttpResponse
Javasoftware.amazon.awscdk.integtests.alpha.HttpResponse
Pythonaws_cdk.integ_tests_alpha.HttpResponse
TypeScript (source)@aws-cdk/integ-tests-alpha ยป HttpResponse

Response from fetch.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as integ_tests_alpha from '@aws-cdk/integ-tests-alpha';

declare const headers: any;
declare const responseJson: any;
const httpResponse: integ_tests_alpha.HttpResponse = {
  headers: {
    headersKey: headers,
  },
  ok: false,
  responseJson: {
    responseJsonKey: responseJson,
  },
  status: 123,
  statusText: 'statusText',
};

Properties

NameTypeDescription
headers?๐Ÿ”น{ [string]: any }Headers associated with the response.
ok?๐Ÿ”นbooleanIndicates whether the response was successful.
responseJson?๐Ÿ”น{ [string]: any }The response as JSON.
status?๐Ÿ”นnumberStatus code of the response.
statusText?๐Ÿ”นstringThe status message corresponding to the status code.

headers?๐Ÿ”น

Type: { [string]: any } (optional)

Headers associated with the response.


ok?๐Ÿ”น

Type: boolean (optional)

Indicates whether the response was successful.

status range 200-299


responseJson?๐Ÿ”น

Type: { [string]: any } (optional)

The response as JSON.


status?๐Ÿ”น

Type: number (optional)

Status code of the response.


statusText?๐Ÿ”น

Type: string (optional)

The status message corresponding to the status code.