mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-27 12:56:36 +08:00
完善API注释
This commit is contained in:
49
pkg/rpc/jsons/http_protocol.md
Normal file
49
pkg/rpc/jsons/http_protocol.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# HTTP协议配置
|
||||
|
||||
## 定义
|
||||
~~~json
|
||||
{
|
||||
"isOn": "是否启用",
|
||||
"listen": [
|
||||
{
|
||||
"protocol": "协议",
|
||||
"host": "主机地址,通常为空",
|
||||
"portRange": "端口或者端口范围"
|
||||
},
|
||||
...
|
||||
]
|
||||
}
|
||||
~~~
|
||||
|
||||
## 示例
|
||||
|
||||
### 监听80端口
|
||||
~~~json
|
||||
{
|
||||
"isOn": true,
|
||||
"listen": [
|
||||
{
|
||||
"protocol": "http",
|
||||
"host": "",
|
||||
"portRange": "80"
|
||||
}
|
||||
]
|
||||
}
|
||||
~~~
|
||||
|
||||
### 监听80和8080端口
|
||||
~~~json
|
||||
{
|
||||
"isOn": true,
|
||||
"listen": [
|
||||
{
|
||||
"protocol": "http",
|
||||
"portRange": "80"
|
||||
},
|
||||
{
|
||||
"protocol": "http",
|
||||
"portRange": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
~~~
|
||||
Reference in New Issue
Block a user