123456789101112131415161718192021222324252627282930 |
- syntax = "proto3";
- package curl;
- option go_package = "./curl";
- option java_multiple_files = true;
- option java_package = "io.grpc.curl";
- option java_outer_classname = "curlWithResolve";
- service CurlWithResolve {
- // Sends a greeting
- rpc CurlWithResolveParam (CurlRequest) returns (CurlReply) {}
- }
- // request
- message CurlRequest {
- string url = 1;
- string ip = 2;
- string ua = 3;
- bool useHeadMethod = 4;
- }
- // response
- message CurlReply {
- int32 code = 1;
- int64 contentLength = 2;
- string error = 3;
- }
|