pub struct ClientHello<'a> { /* private fields */ }Implementations§
Source§impl<'a> ClientHello<'a>
impl<'a> ClientHello<'a>
pub fn random() -> ClientHello<'a>
pub fn from_bytes( ht: HandshakeType, bytes: &'a [u8], ) -> Result<ClientHello<'a>, RlsError>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn write_to<W>(self, writer: &mut W)where
W: WriteExt,
pub fn client_random(&mut self) -> &ByteRef<'a>
Sourcepub fn ja3(&self) -> String
pub fn ja3(&self) -> String
§ja3计算方式为
version+‘,’+cipher_suite(u16)+‘,’+extend_type(u16)+‘,’+supported_groud值(u16)+‘,’+ec_point_format(u8) tls1.3中移除了ec_point_format
Sourcepub fn ja4(&self) -> String
pub fn ja4(&self) -> String
§ja4计算方式为
‘t’+version+‘d’+len(cipher_suites)+len(extensions)+alpn+‘_’+cipher_suite(u16)+‘,’+ec_point_format(u8) tls1.3中移除了ec_point_format
pub fn set_random(&mut self, random: &'a [u8])
pub fn set_session_id(&mut self, session_id: &'a [u8])
pub fn set_server_name(&mut self, server_name: &str)
pub fn set_version(&mut self, version: Version)
pub fn set_cipher_suites(&mut self, suites: Vec<CipherSuite>)
pub fn set_extension(&mut self, extension: Vec<Extension>)
pub fn server_name(&self) -> Option<&str>
pub fn alps(&self) -> Option<&ALPS>
pub fn remove_h2_alpn(&mut self)
pub fn remove_tls13(&mut self)
pub fn add_h2_alpn(&mut self)
pub fn cipher_suites(&self) -> &Vec<CipherSuite>
pub fn take_extensions(&mut self) -> Vec<Extension>
Trait Implementations§
Source§impl<'a> Debug for ClientHello<'a>
impl<'a> Debug for ClientHello<'a>
Source§impl<'a> Default for ClientHello<'a>
impl<'a> Default for ClientHello<'a>
Source§fn default() -> ClientHello<'a>
fn default() -> ClientHello<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ClientHello<'a>
impl<'a> RefUnwindSafe for ClientHello<'a>
impl<'a> Send for ClientHello<'a>
impl<'a> Sync for ClientHello<'a>
impl<'a> Unpin for ClientHello<'a>
impl<'a> UnsafeUnpin for ClientHello<'a>
impl<'a> UnwindSafe for ClientHello<'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