github.com/grafana/pyroscope@v1.18.0/pkg/util/httpgrpc/httpgrpc.proto (about)

     1  syntax = "proto3";
     2  
     3  package httpgrpc;
     4  
     5  option go_package = "github.com/phlare/pkg/util/httpgrpc";
     6  
     7  service HTTP {
     8    rpc Handle(HTTPRequest) returns (HTTPResponse) {}
     9  }
    10  
    11  message HTTPRequest {
    12    string method = 1;
    13    string url = 2;
    14    repeated Header headers = 3;
    15    bytes body = 4;
    16  }
    17  
    18  message HTTPResponse {
    19    int32 Code = 1;
    20    repeated Header headers = 2;
    21    bytes body = 3;
    22  }
    23  
    24  message Header {
    25    string key = 1;
    26    repeated string values = 2;
    27  }