code
{
"host": "domain.com",
"path": "/api/v3/resource",
"mode": "stream-one",
"extra": {
"headers": {
"User-Agent": "Mozilla/5.0"
},
"xPaddingBytes": "100-600",
"noGRPCHeader": false,
"noSSEHeader": true,
"xmux": {
"maxConcurrency": "1-1",
"maxConnections": 0,
"cMaxReuseTimes": 0,
"hMaxRequestTimes": "600-900",
"hKeepAlivePeriod": 0
}
}
}code
{
"host": "domain.com",
"path": "/api/v3/resource",
"mode": "stream-one",
"extra": {
"padding": true,
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive"
}
}
}
code
{
"host": "domain.com",
"path": "/api/v3/resource",
"mode": "auto",
"extra": {
"headers": {
"User-Agent": "Mozilla/5.0"
},
"xPaddingBytes": "100-1000",
"noGRPCHeader": false,
"noSSEHeader": false,
"scMaxEachPostBytes": "1000000",
"scMinPostsIntervalMs": "30",
"scMaxBufferedPosts": 30,
"xmux": {
"maxConcurrency": "16-32",
"maxConnections": 0,
"cMaxReuseTimes": "64-128",
"cMaxLifetimeMs": 0,
"hMaxRequestTimes": "800-900",
"hKeepAlivePeriod": 0
},
"downloadSettings": {
"address": "domain.com",
"port": 2053,
"network": "xhttp",
"security": "tls",
"tlsSettings": {
"serverName": "domain.com"
},
"xhttpSettings": {
"path": "/api/v3/resource"
},
"sockopt": {
"mark": 0
}
}
}
}
上下行分离
code
{
"host": "domain.com",
"path": "/api/v3/5f058fa3-f124-fdac-af15-dfd6250f7a4f",
"mode": "stream-up",
"extra": {
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive"
},
"xPaddingBytes": "100-1000",
"noGRPCHeader": false,
"noSSEHeader": false,
"scMaxEachPostBytes": "800000-1200000",
"scMinPostsIntervalMs": "20-50",
"scMaxBufferedPosts": 30,
"xmux": {
"maxConcurrency": "16-32",
"maxConnections": 0,
"cMaxReuseTimes": "64-128",
"cMaxLifetimeMs": 0,
"hMaxRequestTimes": "600-900",
"hKeepAlivePeriod": 0,
"hMaxReusableSecs": "1800-3000"
},
"downloadSettings": {
"address": "cdn.domain.com",
"port": 2053,
"network": "xhttp",
"security": "tls",
"tlsSettings": {
"serverName": "domain.com"
},
"xhttpSettings": {
"path": "/api/v3/5f058fa3-f124-fdac-af15-dfd6250f7a4f"
},
"sockopt": {
"mark": 0
}
}
}
}stream-one优化
code
{
"host": "domain.com",
"path": "/api/v3/resource",
"mode": "stream-one",
"extra": {
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive"
},
"xPaddingBytes": "100-1000",
"noGRPCHeader": false,
"noSSEHeader": false,
"xmux": {
"maxConcurrency": "16-32",
"maxConnections": 0,
"cMaxReuseTimes": "64-128",
"cMaxLifetimeMs": 0,
"hMaxRequestTimes": "600-900",
"hKeepAlivePeriod": 0,
"hMaxReusableSecs": "1800-3000"
}
}
}评论
还没有评论,来做第一个留言的人吧。