Transport Reference

A transport carries the byte stream of a supported inner proxy protocol between peers. It defines connection setup, HTTP or stream framing, session lifetime, ordering, and backpressure. It does not authenticate proxy users, choose the proxied destination, or interpret the inner protocol’s command.

For those responsibilities see Proxy Protocol Reference. For TLS/REALITY and other channel-protection questions, see Transport Security Reference.

Transport Methods

TransportTransport-owned behaviorWhat it passes to the inner protocol
XHTTPHTTP request/response modes, split sessions, ordering, and paddingReassembled ordered bytes
gRPCHTTP/2 gRPC stream and Hunk message envelopeDecapsulated stream bytes
HTTPUpgradeHTTP/1.1 upgrade preface and 101 responseRaw stream bytes after the upgrade

Other transport paths such as RAW/TCP and WebSocket also exist in the broader Chimera/Xray ecosystem. The implementation matrix distinguishes the specific Client and Server paths currently documented. This page does not claim that every protocol or direction supports every transport.

QUIC is different: protocols such as Hysteria 2 and TUIC define protocol-specific semantics over QUIC. Their QUIC framing and session rules belong to those protocol chapters rather than a hypothetical interchangeable Xray transport wrapper.

Ownership Boundary

Inner proxy bytes (e.g. a VLESS request)
    ↓
Transport encoder (e.g. XHTTP, gRPC, HTTPUpgrade)
    ↓
Optional transport security (e.g. TLS or REALITY)
    ↓
TCP / underlying network

The receiving peer reverses that path. An HTTP 200, gRPC status, or HTTP 101 can confirm transport-layer progress; it never, by itself, confirms that the inner proxy authentication or requested destination succeeded.

For a transport document, put path, host, serviceName, stream envelopes, timeout handling, and HTTP behavior here. Put UUIDs, passwords, proxy commands, and destination address encoding in the protocol reference. Keep certificate validation and REALITY authentication in the security reference.

Compatibility and Failure Isolation

Before deploying a composition, verify the actual client direction, server direction, inner proxy protocol, transport method, security layer, and feature gates together. See Implementation Status and Test Evidence; a working transport listener alone is not an end-to-end proxy compatibility test.

Diagnose transport problems after network/security connectivity and before inner proxy parsing: inspect HTTP route and headers, ALPN or HTTP version where relevant, transport-specific session/framing errors, and then the handoff of decoded bytes to the proxy handler. See End-to-End Troubleshooting.