Interface FetchOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FetchOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-24T10:56:41.765Z")
@Stability(Experimental)
public interface FetchOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) 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 software.amazon.awscdk.integtests.alpha.*; FetchOptions fetchOptions = FetchOptions.builder() .body("body") .headers(Map.of( "headersKey", "headers")) .method("method") .port(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFetchOptions
static final class
An implementation forFetchOptions
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBody
(experimental) Request body.Default: - no body
-
getHeaders
(experimental) Optional request headers.Default: no headers
-
getMethod
(experimental) HTTP method.Default: GET
-
getPort
(experimental) Optional port.Default: default port for protocol
-
builder
- Returns:
- a
FetchOptions.Builder
ofFetchOptions
-