LOG IN SIGN UP
Documentation

TLS and HTTP/2 VCL variables

Fastly has added several variables that expose information about the TLS and HTTP/2 attributes of a request.

Feature Description
fastly_info.is_h2 Whether or not the request was made using HTTP/2. Returns a boolean value.
fastly_info.h2.is_push If the request was made over HTTP/2, whether or not the request is part of a push request. Returns a boolean value.
fastly_info.h2.stream_id If the request was made over HTTP/2, the underlying HTTP/2 stream id.
tls.client.protocol The TLS protocol version that this connection is speaking over. Example: "TLSv1.2"
tls.client.servername The Server Name Indication (SNI) that the client sent in the ClientHello TLS record. Returns "" if the client did not send SNI. Returns NULL (the undefined string) if the request is not a TLS request.
tls.client.cipher The cipher suite used to secure the client TLS connection. Example: "ECDHE-RSA-AES128-GCM-SHA256"
tls.client.ciphers_sha A SHA1 of the two-byte cipher suite identifiers sent from the client as part of the TLS handshake, represented in base64.
tls.client.tlsexts_sha A SHA1 of the TLS extension identifiers sent from the client as part of the TLS handshake, represented in base64.

Back to Top