grpc服务端调用_一个新实验:使用gRPC-Web从浏览器调用.NET gRPC服务

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

    服务器流

什么是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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值