curl.proto 519 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto3";
  2. package curl;
  3. option go_package = "./curl";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.curl";
  6. option java_outer_classname = "curlWithResolve";
  7. service CurlWithResolve {
  8. // Sends a greeting
  9. rpc CurlWithResolveParam (CurlRequest) returns (CurlReply) {}
  10. }
  11. // request
  12. message CurlRequest {
  13. string url = 1;
  14. string ip = 2;
  15. string ua = 3;
  16. bool useHeadMethod = 4;
  17. }
  18. // response
  19. message CurlReply {
  20. int32 code = 1;
  21. int64 contentLength = 2;
  22. string error = 3;
  23. }