grpc服务端调用
gRPC-Web for .NET promises to bring many of gRPC’s great features to browser apps:
gRPC-Web for .NET承诺将gRPC的许多出色功能引入浏览器应用程序:
- Strongly-typed code-generated clients 强类型代码生成的客户端
- Compact Protobuf messages 紧凑的Protobuf消息
- Server streaming 服务器流
![](https://i-blog.csdnimg.cn/blog_migrate/118b4a28cfd0b28d9b804a1580cc8c77.png)
什么是gRPC-Web (What is gRPC-Web)
It is impossible to implement the gRPC HTTP/2 spec in the browser because there is no browser API with enough fine-grained control over HTTP requests. gRPC-Web solves this problem by being compatible with HTTP/1.1 and HTTP/2.
无法在浏览器中实现gRPC HTTP / 2规范,因为没有浏览器API能够对HTTP请求进行足够的细粒度控制。 gRPC-Web通过与HTTP / 1.1和HTTP / 2兼容来解决此问题。
gRPC-Web is not a new technology. There is a stable gRPC-Web JavaScript client, and a proxy for translating between gRPC and gRPC-Web for services. The new experimental packages allow an ASP.NET Core gRPC app to support gRPC-Web without a proxy, and allow the .NET Core gRPC client to call gRPC-Web services. (great for Blazor WebAssembly apps!)
gRPC-Web不是一项新技术。 有一个稳定的gRPC-Web JavaScript客户端 ,以及一个在gRPC和gRPC-Web fo