Class HttpVersion
Maximum HTTP version to support.
Inheritance
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class HttpVersion : Enum
Syntax (vb)
Public NotInheritable Class HttpVersion
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
// Configure a distribution to use HTTP/2 and HTTP/3
// Configure a distribution to use HTTP/2 and HTTP/3
new Distribution(this, "myDist", new DistributionProps {
DefaultBehavior = new BehaviorOptions { Origin = new HttpOrigin("www.example.com") },
HttpVersion = HttpVersion.HTTP2_AND_3
});
Synopsis
Fields
HTTP1_1 | HTTP 1.1. |
HTTP2 | HTTP 2. |
HTTP2_AND_3 | HTTP 2 and HTTP 3. |
HTTP3 | HTTP 3. |
value__ |
Fields
HTTP1_1
HTTP2
HTTP2_AND_3
HTTP3
value__
public int value__
Field Value
Type | Description |
---|---|
System. |