cloudflare / workers-types

TypeScript type definitions for authoring Cloudflare Workers.
BSD 3-Clause "New" or "Revised" License
359 stars 89 forks source link

Make clientTcpRtt optional #280

Closed WalshyDev closed 2 years ago

WalshyDev commented 2 years ago
$ curl -s --http1.1 https://reqinfo.walshy.dev | grep -E 'clientTcpRtt|httpProtocol'
        "clientTcpRtt": 16,
        "httpProtocol": "HTTP/1.1",
$ curl -s --http2 https://reqinfo.walshy.dev | grep -E 'clientTcpRtt|httpProtocol'
        "clientTcpRtt": 12,
        "httpProtocol": "HTTP/2",
$ curl -s --http3 https://reqinfo.walshy.dev | grep -E 'clientTcpRtt|httpProtocol'
        "httpProtocol": "HTTP/3",

HTTP/3 isn't over TCP so there's no TCP RTT sent.

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 048ef7f6782e4e6a07fdb116268f5d7bb6aadb91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------- | ----- | | @cloudflare/workers-types | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR