Parcourir la source

feature:grpc Go-Java 带Resolve参数的Curl实现

kuanglingwei il y a 1 an
Parent
commit
031c73bbcb
1 fichiers modifiés avec 30 ajouts et 0 suppressions
  1. 30 0
      curl.proto

+ 30 - 0
curl.proto

@@ -0,0 +1,30 @@
+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;
+  string body = 2;
+  string error = 3;
+}
+
+