#[non_exhaustive]pub enum HttpCredentialsSend {
Always,
Unauthorized,
}Expand description
When to send HTTP credentials.
See: https://playwright.dev/docs/api/class-browser#browser-new-context-option-http-credentials
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Send the Authorization header up front rather than waiting to be
challenged.
Only honored by APIRequestContext
fetches, matching upstream: browser navigation stays reactive on
every engine, so this is a no-op for page loads. Reach for it when a
server answers 403 instead of 401, which leaves nothing to react
to.
Send it only after the server answers 401. The default.
Trait Implementations§
Source§impl Clone for HttpCredentialsSend
impl Clone for HttpCredentialsSend
Source§fn clone(&self) -> HttpCredentialsSend
fn clone(&self) -> HttpCredentialsSend
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 moreimpl Copy for HttpCredentialsSend
Source§impl Debug for HttpCredentialsSend
impl Debug for HttpCredentialsSend
Source§impl<'de> Deserialize<'de> for HttpCredentialsSend
impl<'de> Deserialize<'de> for HttpCredentialsSend
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
impl Eq for HttpCredentialsSend
Source§impl PartialEq for HttpCredentialsSend
impl PartialEq for HttpCredentialsSend
Source§impl Serialize for HttpCredentialsSend
impl Serialize for HttpCredentialsSend
impl StructuralPartialEq for HttpCredentialsSend
Auto Trait Implementations§
impl Freeze for HttpCredentialsSend
impl RefUnwindSafe for HttpCredentialsSend
impl Send for HttpCredentialsSend
impl Sync for HttpCredentialsSend
impl Unpin for HttpCredentialsSend
impl UnsafeUnpin for HttpCredentialsSend
impl UnwindSafe for HttpCredentialsSend
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