HttpRouteMatch
import type { HttpRouteMatch } from "https://aws-api.deno.dev/v0.3/services/appmesh.ts?docs=full";
An object that represents the requirements for a route to match HTTP requests for a virtual router.
interface HttpRouteMatch {
headers?: HttpRouteHeader[] | null;
method?: HttpMethod | null;
path?: HttpPathMatch | null;
prefix?: string | null;
queryParameters?: HttpQueryParameter[] | null;
scheme?: HttpScheme | null;
}§Properties
§
headers?: HttpRouteHeader[] | null
[src]The client request headers to match on.
§
method?: HttpMethod | null
[src]The client request method to match on. Specify only one.
§
path?: HttpPathMatch | null
[src]The client request path to match on.
§
prefix?: string | null
[src]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
.
§
queryParameters?: HttpQueryParameter[] | null
[src]The client request query parameters to match on.
§
scheme?: HttpScheme | null
[src]The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.