Skip to content
Docs Try Aspire
Docs Try

IResourceWithEndpoints.asHttp2Service

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
asHttp2Service(): IResourceWithEndpoints;
}

Signature

method asHttp2Service builder
Configures a resource to mark all endpoints' transport as HTTP/2. This is useful for HTTP/2 services that need prior knowledge.
asHttp2Service(): IResourceWithEndpoints
IResourceWithEndpoints

Defined on

This method is defined on the following type: