Enum junction_api::http::RouteFilter
source · pub enum RouteFilter {
RequestHeaderModifier {
request_header_modifier: HeaderFilter,
},
ResponseHeaderModifier {
response_header_modifier: HeaderFilter,
},
RequestMirror {
request_mirror: RequestMirrorFilter,
},
RequestRedirect {
request_redirect: RequestRedirectFilter,
},
URLRewrite {
url_rewrite: UrlRewriteFilter,
},
}
Expand description
Defines processing steps that must be completed during the request or response lifecycle.
Variants§
RequestHeaderModifier
Defines a schema for a filter that modifies request headers.
Fields
§
request_header_modifier: HeaderFilter
A Header filter.
ResponseHeaderModifier
Defines a schema for a filter that modifies response headers.
Fields
§
response_header_modifier: HeaderFilter
A Header filter.
RequestMirror
Defines a schema for a filter that mirrors requests. Requests are sent to the specified destination, but responses from that destination are ignored.
This filter can be used multiple times within the same rule. Note that not all implementations will be able to support mirroring to multiple backends.
Fields
§
request_mirror: RequestMirrorFilter
RequestRedirect
Defines a schema for a filter that responds to the request with an HTTP redirection.
Fields
§
request_redirect: RequestRedirectFilter
A redirect filter.
URLRewrite
Defines a schema for a filter that modifies a request during forwarding.
Fields
§
url_rewrite: UrlRewriteFilter
A URL rewrite filter.
Trait Implementations§
source§impl Clone for RouteFilter
impl Clone for RouteFilter
source§fn clone(&self) -> RouteFilter
fn clone(&self) -> RouteFilter
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 RouteFilter
impl Debug for RouteFilter
source§impl<'de> Deserialize<'de> for RouteFilter
impl<'de> Deserialize<'de> for RouteFilter
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RouteFilter
impl PartialEq for RouteFilter
source§impl Serialize for RouteFilter
impl Serialize for RouteFilter
impl StructuralPartialEq for RouteFilter
Auto Trait Implementations§
impl Freeze for RouteFilter
impl RefUnwindSafe for RouteFilter
impl Send for RouteFilter
impl Sync for RouteFilter
impl Unpin for RouteFilter
impl UnwindSafe for RouteFilter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request