Skip to content

Commit 4773d8a

Browse files
JamesNKwadepickett
andauthored
Update grpcweb.md to remove obsolete configuration (#35327)
Co-authored-by: Wade Pickett <[email protected]>
1 parent 873b002 commit 4773d8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aspnetcore/grpc/grpcweb.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: jamesnk
44
description: Learn how to configure gRPC services on ASP.NET Core to be callable from browser apps using gRPC-Web.
55
monikerRange: '>= aspnetcore-3.0'
66
ms.author: wpickett
7-
ms.date: 06/30/2020
7+
ms.date: 04/29/2025
88
uid: grpc/grpcweb
99
---
1010
# gRPC-Web in ASP.NET Core gRPC apps
@@ -134,7 +134,8 @@ The preceding code:
134134
* `GrpcWebMode`: An enumeration type that specifies whether the gRPC HTTP request `Content-Type` is `application/grpc-web` or `application/grpc-web-text`.
135135
* `GrpcWebMode.GrpcWeb` configures sending content without encoding. Default value.
136136
* `GrpcWebMode.GrpcWebText` configures base64-encoded content. Required for server streaming calls in browsers.
137-
* `HttpVersion`: HTTP protocol `Version` used to set <xref:System.Net.Http.HttpRequestMessage.Version?displayProperty=nameWithType> on the underlying gRPC HTTP request. gRPC-Web doesn't require a specific version and doesn't override the default unless specified.
137+
138+
`GrpcChannelOptions.HttpVersion` and `GrpcChannelOptions.HttpVersionPolicy` can be used to configure the HTTP protocol version.
138139

139140
> [!IMPORTANT]
140141
> 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.

0 commit comments

Comments
 (0)