Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

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

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: