@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.136Z") @Stability(value=Stable) public enum HttpVersion extends Enum<HttpVersion>
Example:
// Example automatically generated from non-compiling source. May contain errors.
// Configure a distribution to use HTTP/2 and HTTP/3
// Configure a distribution to use HTTP/2 and HTTP/3
Distribution.Builder.create(this, "myDist")
.defaultBehavior(BehaviorOptions.builder().origin(new HttpOrigin("www.example.com")).build())
.httpVersion(HttpVersion.HTTP2_AND_3)
.build();
| Enum Constant and Description |
|---|
HTTP1_1
HTTP 1.1.
|
HTTP2
HTTP 2.
|
HTTP2_AND_3
HTTP 2 and HTTP 3.
|
HTTP3
HTTP 3.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final HttpVersion HTTP1_1
@Stability(value=Stable) public static final HttpVersion HTTP2
@Stability(value=Stable) public static final HttpVersion HTTP2_AND_3
@Stability(value=Stable) public static final HttpVersion HTTP3
public static HttpVersion[] values()
for (HttpVersion c : HttpVersion.values()) System.out.println(c);
public static HttpVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.