HTTP Header:实现请求方法、域名、状态码等限制,实现内容替换功能

This commit is contained in:
刘祥超
2021-12-14 21:26:43 +08:00
parent 12985e1bd9
commit 9171242c37
6 changed files with 280 additions and 103 deletions

View File

@@ -20,6 +20,13 @@ service HTTPHeaderService {
message CreateHTTPHeaderRequest {
string name = 1;
string value = 2;
repeated int32 status = 3;
bool disableRedirect = 4;
bool shouldAppend = 5;
bool shouldReplace = 6;
bytes replaceValuesJSON = 7;
repeated string methods = 8;
repeated string domains = 9;
}
message CreateHTTPHeaderResponse {
@@ -31,6 +38,13 @@ message UpdateHTTPHeaderRequest {
int64 headerId = 1;
string name = 2;
string value = 3;
repeated int32 status = 4;
bool disableRedirect = 5;
bool shouldAppend = 6;
bool shouldReplace = 7;
bytes replaceValuesJSON = 8;
repeated string methods = 9;
repeated string domains = 10;
}
// 查找配置