Struct aws_sdk_appmesh::model::HttpRouteMatch
source · #[non_exhaustive]pub struct HttpRouteMatch { /* private fields */ }
Expand description
An object that represents the requirements for a route to match HTTP requests for a virtual router.
Implementations§
source§impl HttpRouteMatch
impl HttpRouteMatch
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 client request path to match on.
sourcepub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
pub fn query_parameters(&self) -> Option<&[HttpQueryParameter]>
The client request query parameters to match on.
sourcepub fn method(&self) -> Option<&HttpMethod>
pub fn method(&self) -> Option<&HttpMethod>
The client request method to match on. Specify only one.
sourcepub fn scheme(&self) -> Option<&HttpScheme>
pub fn scheme(&self) -> Option<&HttpScheme>
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
sourcepub fn headers(&self) -> Option<&[HttpRouteHeader]>
pub fn headers(&self) -> Option<&[HttpRouteHeader]>
The client request headers to match on.
source§impl HttpRouteMatch
impl HttpRouteMatch
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HttpRouteMatch
.
Trait Implementations§
source§impl Clone for HttpRouteMatch
impl Clone for HttpRouteMatch
source§fn clone(&self) -> HttpRouteMatch
fn clone(&self) -> HttpRouteMatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HttpRouteMatch
impl Debug for HttpRouteMatch
source§impl PartialEq<HttpRouteMatch> for HttpRouteMatch
impl PartialEq<HttpRouteMatch> for HttpRouteMatch
source§fn eq(&self, other: &HttpRouteMatch) -> bool
fn eq(&self, other: &HttpRouteMatch) -> bool
self
and other
values to be equal, and is used
by ==
.