Struct aws_sdk_appmesh::model::HttpGatewayRouteMatch
source · [−]#[non_exhaustive]pub struct HttpGatewayRouteMatch {
pub prefix: Option<String>,
pub path: Option<HttpPathMatch>,
pub query_parameters: Option<Vec<HttpQueryParameter>>,
pub method: Option<HttpMethod>,
pub hostname: Option<GatewayRouteHostnameMatch>,
pub headers: Option<Vec<HttpGatewayRouteHeader>>,
}
Expand description
An object that represents the criteria for determining a request match.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.prefix: Option<String>
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
.
path: Option<HttpPathMatch>
The path to match on.
query_parameters: Option<Vec<HttpQueryParameter>>
The query parameter to match on.
method: Option<HttpMethod>
The method to match on.
hostname: Option<GatewayRouteHostnameMatch>
The host name to match on.
headers: Option<Vec<HttpGatewayRouteHeader>>
The client request headers to match on.
Implementations
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
.
The path to match on.
The query parameter to match on.
The method to match on.
The host name to match on.
Creates a new builder-style object to manufacture HttpGatewayRouteMatch
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for HttpGatewayRouteMatch
impl Send for HttpGatewayRouteMatch
impl Sync for HttpGatewayRouteMatch
impl Unpin for HttpGatewayRouteMatch
impl UnwindSafe for HttpGatewayRouteMatch
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more