You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**gRPC Elixir** is a full-featured Elixir implementation of the [gRPC](https://grpc.io) protocol, supporting unary and streaming RPCs, interceptors, HTTP transcoding, and TLS. This version adopts a unified stream-based model for all types of calls.
@@ -34,7 +34,7 @@ def deps do
34
34
[
35
35
{:grpc, "~> 0.10"},
36
36
{:protobuf, "~> 0.14"}, # optional for import wellknown google types
@@ -150,8 +150,8 @@ defmodule Helloworld.Application do
150
150
GrpcReflection,
151
151
{
152
152
GRPC.Server.Supervisor, [
153
-
endpoint:Helloworld.Endpoint,
154
-
port:50051,
153
+
endpoint:Helloworld.Endpoint,
154
+
port:50051,
155
155
start_server:true,
156
156
# adapter_opts: [# any adapter-specific options like tls configuration....]
157
157
]
@@ -162,7 +162,7 @@ defmodule Helloworld.Application do
162
162
Supervisor.start_link(children, opts)
163
163
end
164
164
end
165
-
```
165
+
```
166
166
167
167
# Client Usage
168
168
@@ -234,8 +234,8 @@ In mix.exs:
234
234
```elixir
235
235
defdepsdo
236
236
[
237
-
{:grpc, "~> 0.7"},
238
-
{:protobuf_generate, "~> 0.1.1"}
237
+
{:grpc, "~> 0.10"},
238
+
{:protobuf_generate, "~> 0.1.3"}
239
239
]
240
240
end
241
241
```
@@ -268,7 +268,7 @@ See full application code in [helloworld_transcoding](examples/helloworld_transc
268
268
269
269
### **CORS**
270
270
271
-
When accessing gRPC from a browser via HTTP transcoding or gRPC-Web, CORS headers may be required for the browser to allow access to the gRPC endpoint. Adding CORS headers can be done by using `GRPC.Server.Interceptors.CORS` as an interceptor in your `GRPC.Endpoint` module, configuring it as decribed in the module documentation:
271
+
When accessing gRPC from a browser via HTTP transcoding or gRPC-Web, CORS headers may be required for the browser to allow access to the gRPC endpoint. Adding CORS headers can be done by using `GRPC.Server.Interceptors.CORS` as an interceptor in your `GRPC.Endpoint` module, configuring it as described in the module documentation:
0 commit comments