mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 03:26:36 +08:00
实现websocket基本功能
This commit is contained in:
@@ -52,8 +52,11 @@ service HTTPWebService {
|
||||
// 更改路径规则配置
|
||||
rpc updateHTTPWebLocations (UpdateHTTPWebLocationsRequest) returns (RPCUpdateSuccess);
|
||||
|
||||
// 跳转到HTTPS
|
||||
// 更改跳转到HTTPS设置
|
||||
rpc updateHTTPWebRedirectToHTTPS (UpdateHTTPWebRedirectToHTTPSRequest) returns (RPCUpdateSuccess);
|
||||
|
||||
// 更改Websocket设置
|
||||
rpc updateHTTPWebWebsocket (UpdateHTTPWebWebsocketRequest) returns (RPCUpdateSuccess);
|
||||
}
|
||||
|
||||
// 创建Web配置
|
||||
@@ -155,8 +158,14 @@ message UpdateHTTPWebLocationsRequest {
|
||||
bytes locationsJSON = 3;
|
||||
}
|
||||
|
||||
// 跳转到HTTPS
|
||||
// 更改跳转到HTTPS设置
|
||||
message UpdateHTTPWebRedirectToHTTPSRequest {
|
||||
int64 webId = 1;
|
||||
bytes redirectToHTTPSJSON = 2;
|
||||
}
|
||||
|
||||
// 更改Websocket设置
|
||||
message UpdateHTTPWebWebsocketRequest {
|
||||
int64 webId = 1;
|
||||
bytes websocketJSON = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user