HttpRouteMatch
¶
Source code in docs_src/capo_app_mesh/types/http_route_match.py
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.
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.