Skip to main content

Interface: RequestContext

Context object passed to the fetch handler alongside the request.

Properties

httpVersion

httpVersion: string

The HTTP version the request was received over: "2" for HTTP/2 (negotiated via ALPN on a TLS connection) or "1.1" otherwise.


remoteAddress

remoteAddress: string

The remote client IP address.


server

server: Server

The server instance, useful for WebSocket upgrades.