Add headers
This commit is contained in:
parent
69dd6e26aa
commit
f8614981cb
|
@ -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
24
list-values.proto
Normal 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
12
multipart-form.proto
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user