mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-29 08:30:25 +08:00
增加字符编码/HTTP Header管理
This commit is contained in:
@@ -17,6 +17,15 @@ service HTTPWebService {
|
||||
|
||||
// 更改Gzip配置
|
||||
rpc updateHTTPWebGzip (UpdateHTTPWebGzipRequest) returns (UpdateHTTPWebGzipResponse);
|
||||
|
||||
// 更改字符集配置
|
||||
rpc updateHTTPWebCharset (UpdateHTTPWebCharsetRequest) returns (UpdateHTTPWebCharsetResponse);
|
||||
|
||||
// 更改请求Header策略
|
||||
rpc updateHTTPWebRequestHeaderPolicy (UpdateHTTPWebRequestHeaderPolicyRequest) returns (UpdateHTTPWebRequestHeaderPolicyResponse);
|
||||
|
||||
// 更改响应Header策略
|
||||
rpc updateHTTPWebResponseHeaderPolicy (UpdateHTTPWebResponseHeaderPolicyRequest) returns (UpdateHTTPWebResponseHeaderPolicyResponse);
|
||||
}
|
||||
|
||||
// 创建Web配置
|
||||
@@ -55,4 +64,34 @@ message UpdateHTTPWebGzipRequest {
|
||||
|
||||
message UpdateHTTPWebGzipResponse {
|
||||
|
||||
}
|
||||
|
||||
// 更改字符集配置
|
||||
message UpdateHTTPWebCharsetRequest {
|
||||
int64 webId = 1;
|
||||
string charset = 2;
|
||||
}
|
||||
|
||||
message UpdateHTTPWebCharsetResponse {
|
||||
|
||||
}
|
||||
|
||||
// 更改请求Header策略
|
||||
message UpdateHTTPWebRequestHeaderPolicyRequest {
|
||||
int64 webId = 1;
|
||||
int64 headerPolicyId = 2;
|
||||
}
|
||||
|
||||
message UpdateHTTPWebRequestHeaderPolicyResponse {
|
||||
|
||||
}
|
||||
|
||||
// 更改响应Header策略
|
||||
message UpdateHTTPWebResponseHeaderPolicyRequest {
|
||||
int64 webId = 1;
|
||||
int64 headerPolicyId = 2;
|
||||
}
|
||||
|
||||
message UpdateHTTPWebResponseHeaderPolicyResponse {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user