Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.asHttp2Service

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

Signature

methodasHttp2Servicebuilder
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: