pub struct HttpHeaderTransformResponse<'a> { /* private fields */ }Expand description
A native response borrowed only for one host callback.
The headers that an HTTP header transform callback sets.
See mln_http_header_transform_response in the
C API reference.
Implementations§
Source§impl HttpHeaderTransformResponse<'_>
impl HttpHeaderTransformResponse<'_>
Sourcepub fn set_header(&mut self, name: &str, value: &str) -> Result<()>
pub fn set_header(&mut self, name: &str, value: &str) -> Result<()>
Sets a header on the request that an HTTP header transform callback handles.
Header names ignore letter case, and setting a header again replaces its
value. name can’t be a header that the library or the platform
manages: Accept-Encoding, Connection, Content-Length, Host,
If-Modified-Since, If-None-Match, Keep-Alive,
Proxy-Authorization, Proxy-Connection, Range, TE, Trailer,
Transfer-Encoding, Upgrade, or User-Agent.
See mln_http_header_transform_response_set_header in the
C API reference.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for HttpHeaderTransformResponse<'a>
impl<'a> !Sync for HttpHeaderTransformResponse<'a>
impl<'a> !UnwindSafe for HttpHeaderTransformResponse<'a>
impl<'a> Freeze for HttpHeaderTransformResponse<'a>
impl<'a> RefUnwindSafe for HttpHeaderTransformResponse<'a>
impl<'a> Unpin for HttpHeaderTransformResponse<'a>
impl<'a> UnsafeUnpin for HttpHeaderTransformResponse<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more