Grpc.AspNetCore.Web 2.76.0-pre1

Grpc.AspNetCore.Web

Grpc.AspNetCore.Web provides middleware that enables ASP.NET Core gRPC services to accept gRPC-Web calls.

Configure gRPC-Web

In Program.cs:

using GrpcGreeter.Services;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddGrpc();

var app = builder.Build();

// Configure the HTTP request pipeline.
app.UseRouting();
app.UseGrpcWeb(new GrpcWebOptions { DefaultEnabled = true });
app.MapGrpcService<GreeterService>();

app.Run();

gRPC-Web can be enabled for all gRPC services by setting GrpcWebOptions.DefaultEnabled = true, or enabled on individual services with EnableGrpcWeb():

app.MapGrpcService<GreeterService>().EnableGrpcWeb();

gRPC-Web and streaming

Traditional gRPC over HTTP/2 supports streaming in all directions. gRPC-Web offers limited support for streaming:

  • gRPC-Web browser clients don't support calling client streaming and bidirectional streaming methods.
  • gRPC-Web .NET clients don't support calling client streaming and bidirectional streaming methods over HTTP/1.1.
  • ASP.NET Core gRPC services hosted on Azure App Service and IIS don't support bidirectional streaming.

When using gRPC-Web, we only recommend the use of unary methods and server streaming methods.

Showing the top 20 packages that depend on Grpc.AspNetCore.Web.

Packages Downloads
DH.Grpc
DH框架Grpc扩展类
6
DH.Grpc
DH框架Grpc扩展类
5
DH.Grpc
DH框架Grpc扩展类
4

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 10.0

  • No dependencies.

Version Downloads Last updated
2.76.0-pre1 2 2025/11/24
2.71.0 2 2025/11/22
2.71.0-pre1 0 2025/4/16
2.70.0 0 2025/3/10
2.70.0-pre1 0 2025/2/26
2.67.0 3 2025/7/10
2.67.0-pre1 0 2024/10/22
2.66.0 1 2025/11/19
2.66.0-pre1 0 2024/9/6
2.65.0 0 2024/7/27
2.65.0-pre1 0 2024/7/20
2.64.0 0 2024/7/19
2.64.0-pre1 0 2024/7/15
2.63.0 1 2025/7/15
2.63.0-pre1 0 2024/5/8
2.62.0 0 2024/3/29
2.62.0-pre1 0 2024/3/8
2.61.0 0 2024/2/22
2.61.0-pre1 0 2024/2/8
2.60.0 1 2025/11/19
2.60.0-pre1 0 2023/12/14
2.59.0 0 2023/11/8
2.59.0-pre1 0 2023/10/27
2.58.0 0 2023/10/19
2.58.0-pre1 0 2023/10/9
2.57.0 0 2023/9/6
2.57.0-pre1 0 2023/8/31
2.56.0 0 2023/8/25
2.56.0-pre2 0 2023/8/16
2.56.0-pre1 0 2023/8/3
2.55.0 0 2023/7/4
2.55.0-pre1 0 2023/6/23
2.54.0 0 2023/6/15
2.54.0-pre1 0 2023/5/25
2.53.0 0 2023/5/5
2.53.0-pre1 0 2023/4/12
2.52.0 0 2023/3/15
2.52.0-pre1 0 2023/3/3
2.51.0 0 2023/1/2
2.51.0-pre1 0 2022/12/7
2.50.0 0 2022/11/17
2.50.0-pre1 0 2022/11/3
2.49.0 0 2022/9/26
2.49.0-pre1 0 2022/9/1
2.48.0 0 2022/8/24
2.48.0-pre1 0 2022/8/17
2.47.0 0 2022/7/3
2.47.0-pre1 0 2022/6/23
2.46.0 0 2022/5/13
2.46.0-pre1 0 2022/4/28
2.45.0 0 2022/4/19
2.45.0-pre1 0 2022/4/7
2.44.0 0 2022/3/17
2.44.0-pre1 0 2022/3/9
2.43.0 0 2022/2/25
2.43.0-pre1 0 2022/1/28
2.42.0 0 2022/1/19
2.42.0-pre1 0 2021/12/30
2.41.0 0 2021/12/7
2.41.0-pre1 0 2021/11/12
2.40.0 0 2021/10/5
2.40.0-pre1 0 2021/9/9
2.39.0 0 2021/8/18
2.39.0-pre1 0 2021/8/6
2.38.0 0 2021/6/11
2.38.0-pre1 0 2021/6/4
2.37.0 0 2021/4/20
2.37.0-pre1 0 2021/4/14
2.36.0 0 2021/3/17
2.36.0-pre1 0 2021/3/9
2.35.0 0 2021/2/4
2.35.0-pre1 0 2021/1/26
2.34.0 0 2020/12/11
2.34.0-pre1 0 2020/12/1
2.33.1 0 2020/10/28
2.33.1-pre1 0 2020/10/22
2.32.0 0 2020/10/5
2.32.0-pre1 0 2020/9/8
2.31.0 0 2020/8/14
2.31.0-pre2 0 2020/8/3
2.30.0 0 2020/7/16
2.30.0-pre1 0 2020/6/17
2.29.0 0 2020/5/27
2.29.0-pre1 0 2020/5/15
2.28.0-pre2 0 2020/3/11
2.28.0-pre1 0 2020/3/3
2.27.0-pre1 0 2020/1/24