Add headers

This commit is contained in:
ymnuk 2022-10-26 13:10:09 +03:00
parent 69dd6e26aa
commit f8614981cb
3 changed files with 42 additions and 1 deletions

View File

@ -4,6 +4,11 @@ package network;
option go_package = "./network";
import "protobuf/list-values.proto";
import "protobuf/multipart-form.proto";
message Header {
map<string, string> params = 1;
map<string, string> headers = 1;
map<string, ListOfStrings> queryArgs = 2;
MultipartForm multipartForm = 3;
}

24
list-values.proto Normal file
View File

@ -0,0 +1,24 @@
syntax = "proto3";
package network;
option go_package = "./network";
message ListOfStrings {
repeated string value = 1;
}
message ListOfFiles {
message File {
string filename = 1;
repeated string contentType = 2;
sint64 size = 3;
bytes content = 4;
}
repeated File file = 1;
}
message ListOfBinaryes {
repeated bytes value = 1;
}

12
multipart-form.proto Normal file
View File

@ -0,0 +1,12 @@
syntax = "proto3";
package network;
option go_package = "./network";
import "protobuf/list-values.proto";
message MultipartForm{
map<string, ListOfStrings> values = 1;
map<string, ListOfFiles> files = 2;
}