Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AsHttp2Service

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) AsHttp2Service() ResourceWithEndpoints

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() ResourceWithEndpoints
ResourceWithEndpoints

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: