What XHTTP is
Xray keeps the protocol and the transport apart. The protocol, VLESS for example, defines what is carried; the transport defines how that data reaches the server. XHTTP is one of the transports: it packs the data stream into HTTP requests and responses.
The first version came out in 2024 under the name SplitHTTP. The transport was later extended considerably and renamed XHTTP; the old name still turns up in configurations and articles. The main implementation is Xray-core.
How it works
Ordinary HTTP is "a request and a response", while a VPN connection needs a continuous stream in both directions. XHTTP solves this by splitting the directions:
- data from the server to the client arrives as one long response to a GET request, the same way a large file is streamed;
- data from the client to the server leaves in POST requests: either many small ones or a single streaming one.
The server puts the parts back into the original stream by a session identifier. To the nodes in between this looks like ordinary work with a web server using standard HTTP methods, with no special extensions such as WebSocket.
XHTTP modes
- packet-up: outgoing data goes in separate POST requests. The most compatible mode: it works through any proxy or CDN that buffers whole requests.
- stream-up: outgoing data goes in one streaming request, incoming data in another. Faster, but the intermediary must support streaming.
- stream-one: both directions in a single request. Used when there is nothing between the client and the server, including together with REALITY.
By default the mode is chosen automatically from the rest of the configuration.
What XHTTP can do
- Any HTTP version. It runs over HTTP/1.1, HTTP/2 and HTTP/3 (that is, QUIC), and the version is a setting.
- CDNs and reverse proxies. It passes through nodes that do not support WebSocket or gRPC, because it uses only ordinary requests.
- Separate channels. Sending and receiving can use different connections and even different addresses.
- Connection management (XMUX). It sets how many requests share a connection and how often connections are renewed.
- Size padding. Padding of random length is added to the headers so that request sizes do not repeat.
XHTTP, WebSocket and gRPC
- WebSocket needs a switch from HTTP to another protocol (Upgrade) and in practice works only over HTTP/1.1. Not every proxy or CDN supports it.
- gRPC is tied to HTTP/2 and to its own message format; some intermediaries limit it or do not pass it at all.
- XHTTP makes do with standard GET and POST, works on every HTTP version and does not depend on support for extensions.
The price of this versatility is complexity: there are many parameters, and packet-up adds delay and overhead to every request. For a direct connection to a server, plain TCP remains the fastest option.
XHTTP in StayReady
In StayReady the XHTTP transport for VLESS is currently in development: the released apps do not have it yet. When it arrives, the list of protocols on the Why StayReady page will say so. Today VLESS in the apps travels over HTTPS (TLS) with REALITY, over HTTP/2, over an SSH tunnel, over a DNS tunnel and over an RTSP tunnel. The apps are on the download page.
Common questions
Are XHTTP and SplitHTTP the same thing?
XHTTP is the successor of SplitHTTP. The transport appeared in 2024 as SplitHTTP, then gained new modes and features and was renamed.
Is XHTTP a VPN protocol?
No, it is a transport: a way of delivering data. The data itself is carried by a protocol, usually VLESS, and encryption comes from TLS or REALITY.
Does XHTTP work through a CDN?
Yes, that is one of its main purposes: the packet-up mode uses only ordinary GET and POST requests, which any CDN passes.
Which is faster, XHTTP or plain TCP?
With a direct connection to the server, plain TCP is faster and simpler. XHTTP is for cases where something that understands only HTTP stands between the client and the server.
Does StayReady have XHTTP?
Not yet: the transport is in development. The current list of protocols and transports is on the Why StayReady page.
Updated: November 15, 2026