Skip to content

HttpRequest

Source code in docs_src/capo_mediatailor/types/http_request.py
class HttpRequest(TypedDict, closed=True):
    method: NotRequired["capo_mediatailor.types.method.Method"]
    """<p>The HTTP method to use when making requests to the ad decision server. Supported values are <code>GET</code> and <code>POST</code>.</p>"""
    body: NotRequired["capo_mediatailor.types.__string.__string"]
    """<p>The request body content to send with HTTP requests to the ad decision server. This value is only eligible for <code>POST</code> requests.</p>"""
    headers: NotRequired["capo_mediatailor.types.string_map.StringMap"]
    """<p>Custom HTTP headers to include in requests to the ad decision server. Specify headers as key-value pairs. This value is only eligible for <code>POST</code> requests.</p>"""
    compress_request: NotRequired[
        "capo_mediatailor.types.compression_method.CompressionMethod"
    ]
    """<p>The compression method to apply to requests sent to the ad decision server. Supported values are <code>NONE</code> and <code>GZIP</code>. This value is only eligible for <code>POST</code> requests.</p>"""

body instance-attribute

body: NotRequired[__string]

The request body content to send with HTTP requests to the ad decision server. This value is only eligible for POST requests.

compress_request instance-attribute

compress_request: NotRequired[CompressionMethod]

The compression method to apply to requests sent to the ad decision server. Supported values are NONE and GZIP. This value is only eligible for POST requests.

headers instance-attribute

headers: NotRequired[StringMap]

Custom HTTP headers to include in requests to the ad decision server. Specify headers as key-value pairs. This value is only eligible for POST requests.

method instance-attribute

method: NotRequired[Method]

The HTTP method to use when making requests to the ad decision server. Supported values are GET and POST.