Function fastly::handle::client_tls_protocol

source ·
pub fn client_tls_protocol() -> Option<&'static str>
Expand description

Get the TLS protocol version used to secure the downstream client TLS connection, as a string, panicking if it is not UTF-8.

§Examples

assert_eq!(Request::from_client().get_tls_protocol().unwrap(), "TLSv1.2");