pub struct SetSensitiveHeadersLayer { /* private fields */ }
Available on crate feature
sensitive-headers
only.Expand description
Mark headers as sensitive on both requests and responses.
Produces SetSensitiveHeaders
services.
See the module docs for more details.
Implementations§
source§impl SetSensitiveHeadersLayer
impl SetSensitiveHeadersLayer
sourcepub fn new<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
pub fn new<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
Create a new SetSensitiveHeadersLayer
.
Create a new SetSensitiveHeadersLayer
from a shared slice of headers.
Trait Implementations§
source§impl Clone for SetSensitiveHeadersLayer
impl Clone for SetSensitiveHeadersLayer
source§fn clone(&self) -> SetSensitiveHeadersLayer
fn clone(&self) -> SetSensitiveHeadersLayer
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 SetSensitiveHeadersLayer
impl Debug for SetSensitiveHeadersLayer
source§impl<S> Layer<S> for SetSensitiveHeadersLayer
impl<S> Layer<S> for SetSensitiveHeadersLayer
§type Service = SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<S>>
type Service = SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<S>>
The wrapped service