Skip to content
Docs Try Aspire
Docs Try

asHttp2Service

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... 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

Applies to

This method applies to the following types: