Skip to content

Commit 1f38650

Browse files
committed
Update httpupgrade.md
1 parent 298a899 commit 1f38650

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/config/transports/httpupgrade.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ HTTPUpgrade 所使用的 HTTP 协议路径,默认值为 `"/"`。
3636

3737
> `host`: string
3838
39-
HTTPUpgrade 的HTTP请求中所发送的Host,默认值为空。若服务端值为空时,不验证客户端发送来的Host值。若服务端指定了值,客户端发送来的Host值需一致才能连接成功。
39+
HTTPUpgrade 的HTTP请求中所发送的host,默认值为空。若服务端值为空时,不验证客户端发送来的host值。
40+
41+
当在服务端指定该值,或在 ```headers``` 中指定host,将会校验与客户端请求host是否一致。
42+
43+
客户端选择发送的host优先级 ```host``` > ```headers``` > ```address```
4044

4145
> `headers`: map \{string: string\}
4246
4347
自定义 HTTP 头,一个键值对,每个键表示一个 HTTP 头的名称,对应的值是字符串。
4448

4549
默认值为空。
46-
47-
当同时在此处与 ```"host"``` 设置 Host 时,将会使用 ```"host"``` 的值。

0 commit comments

Comments
 (0)