Top Description Fields Constructors Methods
reactor.netty5.http

public final Enum HttpProtocol

extends Enum<HttpProtocol>
Class Inheritance

An enum defining various HTTP negotiations between H2, H2C-upgrade, H2C-prior-knowledge and HTTP/1.1
Author
Stephane Maldini

Field Summary

Modifier and TypeField and Description
public static final HttpProtocol
H2

HTTP/2.0 support with TLS

If used along with HTTP/1.1 protocol, HTTP/2.0 will be the preferred protocol.

public static final HttpProtocol
H2C

HTTP/2.0 support with clear-text.

public static final HttpProtocol
HTTP11

The default supported HTTP protocol by HttpServer and HttpClient

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HttpProtocol
public static HttpProtocol[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

H2back to summary
public static final HttpProtocol H2

HTTP/2.0 support with TLS

If used along with HTTP/1.1 protocol, HTTP/2.0 will be the preferred protocol. While negotiating the application level protocol, HTTP/2.0 or HTTP/1.1 can be chosen.

If used without HTTP/1.1 protocol, HTTP/2.0 will always be offered as a protocol for communication with no fallback to HTTP/1.1.

H2Cback to summary
public static final HttpProtocol H2C

HTTP/2.0 support with clear-text.

If used along with HTTP/1.1 protocol, will support H2C "upgrade": Request or consume requests as HTTP/1.1 first, looking for HTTP/2.0 headers and Connection: Upgrade. A server will typically reply a successful 101 status if upgrade is successful or a fallback HTTP/1.1 response. When successful the client will start sending HTTP/2.0 traffic.

If used without HTTP/1.1 protocol, will support H2C "prior-knowledge": Doesn't require Connection: Upgrade handshake between a client and server but fallback to HTTP/1.1 will not be supported.

HTTP11back to summary
public static final HttpProtocol HTTP11

The default supported HTTP protocol by HttpServer and HttpClient

Constructor Detail

HttpProtocolback to summary
private HttpProtocol()

Method Detail

valueOfback to summary
public static HttpProtocol valueOf(String name)
valuesback to summary
public static HttpProtocol[] values()