mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
28 lines
416 B
Protocol Buffer
28 lines
416 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package httpgrpc;
|
|
|
|
option go_package = "httpgrpc";
|
|
|
|
service HTTP {
|
|
rpc Handle(HTTPRequest) returns (HTTPResponse) {};
|
|
}
|
|
|
|
message HTTPRequest {
|
|
string method = 1;
|
|
string url = 2;
|
|
repeated Header headers = 3;
|
|
bytes body = 4;
|
|
}
|
|
|
|
message HTTPResponse {
|
|
int32 Code = 1;
|
|
repeated Header headers = 2;
|
|
bytes body = 3;
|
|
}
|
|
|
|
message Header {
|
|
string key = 1;
|
|
repeated string values = 2;
|
|
}
|