Struct spacegate_kernel::plugins::filters::rewrite::SgFilterRewrite
source · pub struct SgFilterRewrite {
pub hostname: Option<String>,
pub path: Option<SgHttpPathModifier>,
}Expand description
RewriteFilter defines a filter that modifies a request during forwarding.
https://gateway-api.sigs.k8s.io/geps/gep-726/
Fields§
§hostname: Option<String>Hostname is the value to be used to replace the Host header value during forwarding.
path: Option<SgHttpPathModifier>Path defines parameters used to modify the path of the incoming request. The modified path is then used to construct the Location header. When empty, the request path is used as-is.
Trait Implementations§
source§impl Clone for SgFilterRewrite
impl Clone for SgFilterRewrite
source§fn clone(&self) -> SgFilterRewrite
fn clone(&self) -> SgFilterRewrite
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 SgFilterRewrite
impl Debug for SgFilterRewrite
source§impl Default for SgFilterRewrite
impl Default for SgFilterRewrite
source§fn default() -> SgFilterRewrite
fn default() -> SgFilterRewrite
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SgFilterRewrite
impl<'de> Deserialize<'de> for SgFilterRewrite
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 Serialize for SgFilterRewrite
impl Serialize for SgFilterRewrite
source§impl SgPluginFilter for SgFilterRewrite
impl SgPluginFilter for SgFilterRewrite
fn kind(&self) -> SgPluginFilterKind
fn init<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn destroy<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = TardisResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn req_filter<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRouteFilterContext, matched_match_inst: Option<&'life2 SgHttpRouteMatchInst> ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRouteFilterContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
fn resp_filter<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _: &'life1 str, ctx: SgRouteFilterContext, __arg3: Option<&'life2 SgHttpRouteMatchInst> ) -> Pin<Box<dyn Future<Output = TardisResult<(bool, SgRouteFilterContext)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for SgFilterRewrite
impl Send for SgFilterRewrite
impl Sync for SgFilterRewrite
impl Unpin for SgFilterRewrite
impl UnwindSafe for SgFilterRewrite
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