Permalink
33ae856 Apr 15, 2018
1 contributor

Users who have contributed to this file

25 lines (20 sloc) 524 Bytes
syntax = "proto3";
package go.micro.api;
message Pair {
string key = 1;
repeated string values = 2;
}
message Request {
string method = 1;
string path = 2;
map<string, Pair> header = 3;
map<string, Pair> get = 4;
map<string, Pair> post = 5;
string body = 6; // raw request body; if not application/x-www-form-urlencoded
string url = 7; // the full url
}
message Response {
int32 statusCode = 1;
map<string, Pair> header = 2;
string body = 3;
}