Package reactor.netty.http.client
Enum HttpClientState
- All Implemented Interfaces:
Serializable
,Comparable<HttpClientState>
,java.lang.constant.Constable
,ConnectionObserver.State
Specific Http Client state observable by
HttpClient.observe(ConnectionObserver)
.- Author:
- Stephane Maldini
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request has been prepared and ready for I/O handler to be invoked.The request has been sent.The response fully received.The request has been sent but the response has not been fully received and the connection has been prematurely closed.The response status and headers have been received.Propagated when a stream is bound to a channelOperation and ready for user interaction.The H2C upgrade was unsuccessful due to the server not issuing with a 101 Switching Protocols response.The H2C upgrade was successful. -
Field Summary
Fields inherited from interface reactor.netty.ConnectionObserver.State
ACQUIRED, CONFIGURED, CONNECTED, DISCONNECTING, RELEASED
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClientState
Returns the enum constant of this type with the specified name.static HttpClientState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUEST_PREPARED
The request has been prepared and ready for I/O handler to be invoked. -
REQUEST_SENT
The request has been sent. -
RESPONSE_INCOMPLETE
The request has been sent but the response has not been fully received and the connection has been prematurely closed. -
RESPONSE_RECEIVED
The response status and headers have been received. -
RESPONSE_COMPLETED
The response fully received. -
STREAM_CONFIGURED
Propagated when a stream is bound to a channelOperation and ready for user interaction. -
UPGRADE_REJECTED
The H2C upgrade was unsuccessful due to the server not issuing with a 101 Switching Protocols response. This may indicate that the server does not support H2C. -
UPGRADE_SUCCESSFUL
The H2C upgrade was successful.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-