Interface FetchOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FetchOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:26.407Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFetchOptionsstatic final classAn 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.BuilderofFetchOptions
-