Skip to content

HttpRouteMatch

Source code in docs_src/capo_app_mesh/types/http_route_match.py
class HttpRouteMatch(TypedDict, closed=True):
    prefix: NotRequired["str"]
    """<p>Specifies the path to match requests with. This parameter must always start with <code>/</code>, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is <code>my-service.local</code> and you want the route to match requests to <code>my-service.local/metrics</code>, your prefix should be <code>/metrics</code>.</p>"""
    path: NotRequired["capo_app_mesh.types.http_path_match.HttpPathMatch"]
    """<p>The client request path to match on.</p>"""
    query_parameters: NotRequired[
        "capo_app_mesh.types.http_query_parameters.HttpQueryParameters"
    ]
    """<p>The client request query parameters to match on.</p>"""
    method: NotRequired["capo_app_mesh.types.http_method.HttpMethod"]
    """<p>The client request method to match on. Specify only one.</p>"""
    scheme: NotRequired["capo_app_mesh.types.http_scheme.HttpScheme"]
    """<p>The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.</p>"""
    headers: NotRequired["capo_app_mesh.types.http_route_headers.HttpRouteHeaders"]
    """<p>The client request headers to match on.</p>"""
    port: NotRequired["capo_app_mesh.types.listener_port.ListenerPort"]
    """<p>The port number to match on.</p>"""

headers instance-attribute

headers: NotRequired[HttpRouteHeaders]

The client request headers to match on.

method instance-attribute

method: NotRequired[HttpMethod]

The client request method to match on. Specify only one.

path instance-attribute

path: NotRequired[HttpPathMatch]

The client request path to match on.

port instance-attribute

port: NotRequired[ListenerPort]

The port number to match on.

prefix instance-attribute

prefix: NotRequired[str]

Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.

query_parameters instance-attribute

query_parameters: NotRequired[HttpQueryParameters]

The client request query parameters to match on.

scheme instance-attribute

scheme: NotRequired[HttpScheme]

The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.