# Google Cloud Compute V1 API - Module Google::Cloud::Compute::V1::TargetHttpsProxy::TlsEarlyData (v3.7.0)

3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.22.0 2.21.1 2.20.0 2.19.1 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.2 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.5.0 Reference documentation and code samples for the Google Cloud Compute V1 API module Google::Cloud::Compute::V1::TargetHttpsProxy::TlsEarlyData.

Specifies whether TLS 1.3 0-RTT Data ("Early Data") should be accepted
for this service. Early Data allows a TLS resumption handshake to include
the initial application payload (a HTTP request) alongside the handshake,
reducing the effective round trips to "zero". This applies to TLS 1.3
connections over TCP (HTTP/2) as well as over UDP (QUIC/h3).


This can improve application performance, especially on networks where
interruptions may be common, such as on mobile.

Requests with Early Data will have the "Early-Data" HTTP header set on
the request, with a value of "1", to allow the backend to determine whether
Early Data was included.

Note: TLS Early Data may allow requests to be replayed, as the data is
sent to the backend before the handshake has fully completed. Applications
that allow idempotent HTTP methods to make non-idempotent changes, such as
a GET request updating a database, should not accept Early Data on those
requests, and reject requests with the "Early-Data: 1" HTTP header by
returning a HTTP 425 (Too Early) status code, in order to remain RFC
compliant.

<br />

The default value is DISABLED.

## Constants

### UNDEFINED_TLS_EARLY_DATA

**value:** 0  
A value indicating that the enum field is not set.

### DISABLED

**value:** 516_696_700  
TLS 1.3 Early Data is not advertised, and any (invalid) attempts to send
Early Data will be rejected by closing the connection.

### PERMISSIVE

**value:** 504_345_247  
This enables TLS 1.3 0-RTT, and only allows Early Data to be included on
requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE). This mode
does not enforce any other limitations for requests with Early Data. The
application owner should validate that Early Data is acceptable for a
given request path.

### STRICT

**value:** 308_826_825  
This enables TLS 1.3 0-RTT, and only allows Early Data to be included on
requests with safe HTTP methods (GET, HEAD, OPTIONS, TRACE) without query
parameters. Requests that send Early Data with non-idempotent HTTP
methods or with query parameters will be rejected with a HTTP 425.

### UNRESTRICTED

**value:** 457_266_100  
This enables TLS 1.3 Early Data for requests with any HTTP method
including non-idempotent methods list POST. This mode does not enforce
any other limitations. This may be valuable for gRPC use cases. However,
we do not recommend this method unless you have evaluated your security
stance and mitigated the risk of replay attacks using other mechanisms.