interface FetchOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.IntegTests.Alpha.FetchOptions | 
|  Go | github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#FetchOptions | 
|  Java | software.amazon.awscdk.integtests.alpha.FetchOptions | 
|  Python | aws_cdk.integ_tests_alpha.FetchOptions | 
|  TypeScript (source) | @aws-cdk/integ-tests-alphaยปFetchOptions | 
Options to pass to the JavaScript fetch api.
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';
const fetchOptions: integ_tests_alpha.FetchOptions = {
  body: 'body',
  headers: {
    headersKey: 'headers',
  },
  method: 'method',
  port: 123,
};
Properties
| Name | Type | Description | 
|---|---|---|
| body? | string | Request body. | 
| headers? | { [string]: string } | Optional request headers. | 
| method? | string | HTTP method. | 
| port? | number | Optional port. | 
body?
Type:
string
(optional, default: no body)
Request body.
headers?
Type:
{ [string]: string }
(optional, default: no headers)
Optional request headers.
method?
Type:
string
(optional, default: GET)
HTTP method.
port?
Type:
number
(optional, default: default port for protocol)
Optional port.
