pub struct BadCookieHeader { /* private fields */ }Expand description
The rejection CookieJarBuf::try_jar / try_jar_strict
return: the request’s Cookie: header carried at least one malformed pair.
As a response it is 400 Bad Request with a static body — it reports the
issue count only and never echoes header bytes, so a corrupted cookie
cannot ride an error page back out.
Implementations§
Trait Implementations§
Source§impl Clone for BadCookieHeader
impl Clone for BadCookieHeader
Source§fn clone(&self) -> BadCookieHeader
fn clone(&self) -> BadCookieHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BadCookieHeader
impl Debug for BadCookieHeader
Source§impl Display for BadCookieHeader
impl Display for BadCookieHeader
Source§impl Error for BadCookieHeader
impl Error for BadCookieHeader
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl IntoResponse for BadCookieHeader
impl IntoResponse for BadCookieHeader
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for BadCookieHeader
impl RefUnwindSafe for BadCookieHeader
impl Send for BadCookieHeader
impl Sync for BadCookieHeader
impl Unpin for BadCookieHeader
impl UnsafeUnpin for BadCookieHeader
impl UnwindSafe for BadCookieHeader
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