From 780eb45e4237234445ebd2d178b59bde61030bd3 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Wed, 30 Apr 2025 07:09:05 +0800 Subject: [PATCH 1/2] Update grpcweb.md --- aspnetcore/grpc/grpcweb.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aspnetcore/grpc/grpcweb.md b/aspnetcore/grpc/grpcweb.md index 5f6b39261e93..66a4160d5d0c 100644 --- a/aspnetcore/grpc/grpcweb.md +++ b/aspnetcore/grpc/grpcweb.md @@ -134,7 +134,8 @@ The preceding code: * `GrpcWebMode`: An enumeration type that specifies whether the gRPC HTTP request `Content-Type` is `application/grpc-web` or `application/grpc-web-text`. * `GrpcWebMode.GrpcWeb` configures sending content without encoding. Default value. * `GrpcWebMode.GrpcWebText` configures base64-encoded content. Required for server streaming calls in browsers. -* `HttpVersion`: HTTP protocol `Version` used to set on the underlying gRPC HTTP request. gRPC-Web doesn't require a specific version and doesn't override the default unless specified. + +`GrpcChannelOptions.HttpVersion` and `GrpcChannelOptions.HttpVersionPolicy` can be used to configure the HTTP protocol version. > [!IMPORTANT] > Generated gRPC clients have synchronous and asynchronous methods for calling unary methods. For example, `SayHello` is synchronous, and `SayHelloAsync` is asynchronous. Asynchronous methods are always required in Blazor WebAssembly. Calling a synchronous method in a Blazor WebAssembly app causes the app to become unresponsive. From 4df6884b91509a652683af689987d9c61998ec26 Mon Sep 17 00:00:00 2001 From: Wade Pickett Date: Tue, 29 Apr 2025 16:18:44 -0700 Subject: [PATCH 2/2] Update grpcweb.md Updated ms.date topic meta data. --- aspnetcore/grpc/grpcweb.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/grpc/grpcweb.md b/aspnetcore/grpc/grpcweb.md index 66a4160d5d0c..52da4c0e3a17 100644 --- a/aspnetcore/grpc/grpcweb.md +++ b/aspnetcore/grpc/grpcweb.md @@ -4,7 +4,7 @@ author: jamesnk description: Learn how to configure gRPC services on ASP.NET Core to be callable from browser apps using gRPC-Web. monikerRange: '>= aspnetcore-3.0' ms.author: wpickett -ms.date: 06/30/2020 +ms.date: 04/29/2025 uid: grpc/grpcweb --- # gRPC-Web in ASP.NET Core gRPC apps