Explorar el Código

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

kuanglingwei hace 1 año
padre
commit
031c73bbcb
Se han modificado 1 ficheros con 30 adiciones y 0 borrados
  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;
+}
+
+