Interface HttpResponseWrapper
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpResponseWrapper.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.277Z")
@Stability(Experimental)
public interface HttpResponseWrapper
extends software.amazon.jsii.JsiiSerializable
(experimental) Response from the HttpCall resource.
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.*; Object body; Object headers; HttpResponseWrapper httpResponseWrapper = HttpResponseWrapper.builder() .apiCallResponse(HttpResponse.builder() .body(body) .headers(Map.of( "headersKey", headers)) .ok(false) .status(123) .statusText("statusText") .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpResponseWrapper
static final class
An implementation forHttpResponseWrapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpResponseWrapper.Builder
builder()
(experimental) The Response from the fetch request.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiCallResponse
(experimental) The Response from the fetch request. -
builder
- Returns:
- a
HttpResponseWrapper.Builder
ofHttpResponseWrapper
-