Skip to content

Protocols

Cloudflare Workers support the following protocols and interfaces:

ProtocolInboundOutbound
HTTP / HTTPSHandle incoming HTTP requests using the fetch() handlerMake HTTP subrequests using the fetch() API
Direct TCP socketsSupport for handling inbound TCP connections is coming soon ↗Create outbound TCP connections using the connect() API
WebSocketsAccept incoming WebSocket connections using the WebSocket API
HTTP/3 (QUIC)Accept inbound requests over HTTP/3 ↗ by enabling it on your zone in Speed > Settings > Protocol Optimization area of the Cloudflare dashboard ↗.
SMTPUse Email Workers to process and forward email, without having to manage TCP connections to SMTP email serversEmail Workers