HttpResponseWrapper

class aws_cdk.integ_tests_alpha.HttpResponseWrapper(*, api_call_response)

Bases: object

(experimental) Response from the HttpCall resource.

Parameters:

api_call_response (Union[HttpResponse, Dict[str, Any]]) – (experimental) The Response from the fetch request.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests_alpha as integ_tests_alpha

# body: Any
# headers: Any

http_response_wrapper = integ_tests_alpha.HttpResponseWrapper(
    api_call_response=integ_tests_alpha.HttpResponse(
        body=body,
        headers={
            "headers_key": headers
        },
        ok=False,
        status=123,
        status_text="statusText"
    )
)

Attributes

api_call_response

(experimental) The Response from the fetch request.

Stability:

experimental