Skip to content

HTTP/3

名称: h3

状态: Alpha

HTTP3拨号器使用HTTP/3协议与HTTP3服务建立数据通道。

gost -L :8080 -F http+h3://:8443
services:
- name: service-0
  addr: ":8080"
  handler:
    type: auto
    chain: chain-0
  listener:
    type: tcp
chains:
- name: chain-0
  hops:
  - name: hop-0
    nodes:
    - name: node-0
      addr: :8443
      connector:
        type: http
      dialer:
        type: h3

参数列表

host (string)
指定HTTP请求Host头部字段值
authorizePath (string, default=/authorize)
用户授权接口URI
pushPath (string, default=/push)
数据发送URI
pullPath (string, default=/pull)
数据接收URI
keepAlive (bool, default=true)
开启心跳检测
ttl (duration, default=10s)
心跳间隔时长,当keepAlive为true时有效
handshakeTimeout (duration, default=5s)
握手超时时长
maxIdleTimeout (duration, default=30s)
最大空闲时长
maxStreams (int, default=100)
最大并发stream数量

TLS配置请参考TLS配置说明