Interface IncomingRequestCfPropertiesBase

interface IncomingRequestCfPropertiesBase {
    asOrganization: string;
    asn: number;
    clientAcceptEncoding?: string;
    clientTcpRtt?: number;
    colo: string;
    edgeRequestKeepAliveStatus: IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus;
    httpProtocol: string;
    requestPriority: string;
    tlsCipher: string;
    tlsExportedAuthenticator?: IncomingRequestCfPropertiesExportedAuthenticatorMetadata;
    tlsVersion: string;
}

Hierarchy

  • Record<string, unknown>
    • IncomingRequestCfPropertiesBase

Properties

asOrganization: string

The organization which owns the ASN of the incoming request.

Example

"Google Cloud"
asn: number

ASN of the incoming request.

Example

395747
clientAcceptEncoding?: string

The original value of the Accept-Encoding header if Cloudflare modified it.

Example

"gzip, deflate, br"
clientTcpRtt?: number

The number of milliseconds it took for the request to reach your worker.

Example

22
colo: string

The three-letter IATA airport code of the data center that the request hit.

Example

"DFW"

Represents the upstream's response to a TCP keepalive message from cloudflare.

For workers with no upstream, this will always be 1.

Example

3
httpProtocol: string

The HTTP Protocol the request used.

Example

"HTTP/2"
requestPriority: string

The browser-requested prioritization information in the request object.

If no information was set, defaults to the empty string ""

Example

"weight=192;exclusive=0;group=3;group-weight=127"

Default

""
tlsCipher: string

The cipher for the connection to Cloudflare. In requests served over plaintext (without TLS), this property is the empty string "".

Example

"AEAD-AES128-GCM-SHA256"

Metadata containing the HELLO and FINISHED messages from this request's TLS handshake.

If the incoming request was served over plaintext (without TLS) this field is undefined.

tlsVersion: string

The TLS version of the connection to Cloudflare. In requests served over plaintext (without TLS), this property is the empty string "".

Example

"TLSv1.3"