pub struct HttpProtocols {
pub require_alpn: bool,
}Expand description
Enabled HTTP implementations and their establishment policy.
Fields§
§require_alpn: boolReject an encrypted peer that did not negotiate an application protocol. Unknown negotiated protocols are rejected regardless of this setting.
Implementations§
Source§impl HttpProtocols
impl HttpProtocols
Sourcepub fn alpn_protocols(&self) -> Vec<Vec<u8>>
pub fn alpn_protocols(&self) -> Vec<Vec<u8>>
Opaque application-protocol names supplied to the security provider.
Sourcepub fn plaintext(&self) -> HttpProtocol
pub fn plaintext(&self) -> HttpProtocol
The initial explicit policy for a plain TCP stream.
Sourcepub fn negotiated(
&self,
selected: Option<&[u8]>,
) -> Result<HttpProtocol, NegotiationError>
pub fn negotiated( &self, selected: Option<&[u8]>, ) -> Result<HttpProtocol, NegotiationError>
Select the engine after an authenticated transport reports negotiation.
Trait Implementations§
Source§impl Clone for HttpProtocols
impl Clone for HttpProtocols
impl Copy for HttpProtocols
Source§impl Debug for HttpProtocols
impl Debug for HttpProtocols
Auto Trait Implementations§
impl Freeze for HttpProtocols
impl RefUnwindSafe for HttpProtocols
impl Send for HttpProtocols
impl Sync for HttpProtocols
impl Unpin for HttpProtocols
impl UnsafeUnpin for HttpProtocols
impl UnwindSafe for HttpProtocols
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