Expand description
Errors that can occur when working with cookies.
Structs§
- Crypto
Error - An error that occurred while decrypting or verifying an incoming request cookie.
- Decoding
Error - An error that occurred while decoding a percent-encoded cookie name or value.
- Empty
Name Error - An error that occurs when parsing a fragment of a
Cookieheader value that contains an empty name (e.g.=value). - Inject
Response Cookies Error - The error type returned by
inject_response_cookies. - Missing
Pair Error - An error that occurs when parsing a fragment of a
Cookieheader value that doesn’t contain a name-value separator (=). - Short
KeyError - The key generation algorithm requires more bytes than what was provided.
Enums§
- Extract
Request Cookies Error - The error type returned by
extract_request_cookies. - KeyError
- The error returned by
crate::Key::try_from()when trying to create aKeyfrom raw bytes. - Parse
Error - The error returned by
RequestCookies::parse_header(). - Process
Incoming Error - The error returned by
Processor::process_incoming.
Constants§
- EXTRACT_
REQUEST_ COOKIES_ ERROR_ INTO_ RESPONSE - A handle to add
ExtractRequestCookiesError::into_response()as an error handler to your Pavex application. - INJECT_
RESPONSE_ COOKIES_ ERROR_ INTO_ RESPONSE - A handle to add
InjectResponseCookiesError::into_response()as an error handler to your Pavex application.