支持自动转换图像文件为WebP

This commit is contained in:
GoEdgeLab
2021-10-01 16:25:31 +08:00
parent c2ea2c96d5
commit 2ab9a1d68e
5 changed files with 640 additions and 345 deletions

View File

@@ -22,6 +22,9 @@ service HTTPWebService {
// 更改压缩配置
rpc updateHTTPWebCompression (UpdateHTTPWebCompressionRequest) returns (RPCSuccess);
// 更改WebP配置
rpc updateHTTPWebWebP (UpdateHTTPWebWebPRequest) returns (RPCSuccess);
// 更改字符集配置
rpc updateHTTPWebCharset (UpdateHTTPWebCharsetRequest) returns (RPCSuccess);
@@ -113,6 +116,12 @@ message UpdateHTTPWebCompressionRequest {
bytes compressionJSON = 2;
}
// 更改WebP配置
message UpdateHTTPWebWebPRequest {
int64 webId = 1;
bytes webpJSON = 2;
}
// 更改字符集配置
message UpdateHTTPWebCharsetRequest {
int64 webId = 1;