Skip to content

Commit 860813b

Browse files
committed
add document for httpupgrade earlydata & custom header
1 parent 804d250 commit 860813b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

docs/en_US/v5/config/stream/httpupgrade.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,25 @@ Look at its [pull request](https://github.com/v2fly/v2ray-core/pull/2541) for wo
1616
> `host` : string
1717
1818
The host domain name for HTTP request.
19+
20+
> `maxEarlyData`: number
21+
22+
The max number of bytes of early data. (v5.24.0)
23+
24+
> `earlyDataHeaderName`: string
25+
26+
The header name for WebSocket Early Data. (v5.24.0)
27+
28+
> 'header': [ [Header](#header) ]
29+
30+
The header to be sent in HTTP request. (v5.24.0)
31+
32+
## Header
33+
34+
> 'key' : string
35+
36+
The HTTP header key.
37+
38+
> 'value' : string
39+
40+
The HTTP header value.

docs/v5/config/stream/httpupgrade.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,15 @@ HTTP 路径。
1616
> `host` : string
1717
1818
HTTP 主机域名。
19+
20+
> `maxEarlyData`: number
21+
22+
所要发送的前置数据的最长长度。用于减少连接建立的时间。
23+
24+
> `earlyDataHeaderName`: string
25+
>
26+
发送的前置数据的 HTTP 头的名字,设置后启用基于 HTTP 头的前置数据。(v5.24.0)
27+
28+
> `headers`: [ struct{ key, value string } ]
29+
30+
自定义 HTTP 头,一个键值对,每个键表示一个 HTTP 头的名称,对应的值是字符串。默认值为空。(v5.24.0)

0 commit comments

Comments
 (0)