pub struct HttpBackendRef {
pub backend_ref: Option<BackendRef>,
pub filters: Option<Vec<HttpRouteFilter>>,
}
Expand description
HTTPBackendRef defines how a HTTPRoute should forward an HTTP request.
Fields§
§backend_ref: Option<BackendRef>
BackendRef is a reference to a backend to forward matched requests to.
If the referent cannot be found, this HTTPBackendRef is invalid and must
be dropped from the Gateway. The controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False
and not
configure this backend in the underlying implementation.
If there is a cross-namespace reference to an existing object
that is not covered by a ReferencePolicy, the controller must ensure the
“ResolvedRefs” condition on the Route is set to status: False
,
with the “RefNotPermitted” reason and not configure this backend in the
underlying implementation.
In either error case, the Message of the ResolvedRefs
Condition
should be used to provide more detail about the problem.
Support: Custom
filters: Option<Vec<HttpRouteFilter>>
Filters defined at this level should be executed if and only if the request is being forwarded to the backend defined here.
Support: Custom (For broader support of filters, use the Filters field in HTTPRouteRule.)
Trait Implementations§
Source§impl Clone for HttpBackendRef
impl Clone for HttpBackendRef
Source§fn clone(&self) -> HttpBackendRef
fn clone(&self) -> HttpBackendRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HttpBackendRef
impl Debug for HttpBackendRef
Source§impl<'de> Deserialize<'de> for HttpBackendRef
impl<'de> Deserialize<'de> for HttpBackendRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<GrpcRouteBackendRef> for HttpBackendRef
impl From<GrpcRouteBackendRef> for HttpBackendRef
Source§fn from(backend: GrpcRouteBackendRef) -> Self
fn from(backend: GrpcRouteBackendRef) -> Self
Source§impl JsonSchema for HttpBackendRef
impl JsonSchema for HttpBackendRef
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more