Struct aws_sdk_appmesh::model::HttpGatewayRouteMatch
source · #[non_exhaustive]pub struct HttpGatewayRouteMatch { /* private fields */ }
Expand description
An object that represents the criteria for determining a request match.
Implementations§
source§impl HttpGatewayRouteMatch
impl HttpGatewayRouteMatch
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&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
.
sourcepub fn path(&self) -> Option<&HttpPathMatch>
pub fn path(&self) -> Option<&HttpPathMatch>
The path to match on.
sourcepub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
pub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
The query parameter to match on.
sourcepub fn method(&self) -> Option<&HttpMethod>
pub fn method(&self) -> Option<&HttpMethod>
The method to match on.
sourcepub fn hostname(&self) -> Option<&GatewayRouteHostnameMatch>
pub fn hostname(&self) -> Option<&GatewayRouteHostnameMatch>
The host name to match on.
sourcepub fn headers(&self) -> Option<&[HttpGatewayRouteHeader]>
pub fn headers(&self) -> Option<&[HttpGatewayRouteHeader]>
The client request headers to match on.
source§impl HttpGatewayRouteMatch
impl HttpGatewayRouteMatch
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpGatewayRouteMatch
.
Trait Implementations§
source§impl Clone for HttpGatewayRouteMatch
impl Clone for HttpGatewayRouteMatch
source§fn clone(&self) -> HttpGatewayRouteMatch
fn clone(&self) -> HttpGatewayRouteMatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HttpGatewayRouteMatch
impl Debug for HttpGatewayRouteMatch
source§impl PartialEq<HttpGatewayRouteMatch> for HttpGatewayRouteMatch
impl PartialEq<HttpGatewayRouteMatch> for HttpGatewayRouteMatch
source§fn eq(&self, other: &HttpGatewayRouteMatch) -> bool
fn eq(&self, other: &HttpGatewayRouteMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.