Enum HttpClientState

java.lang.Object
java.lang.Enum<HttpClientState>
reactor.netty.http.client.HttpClientState
All Implemented Interfaces:
Serializable, Comparable<HttpClientState>, java.lang.constant.Constable, ConnectionObserver.State

public enum HttpClientState extends Enum<HttpClientState> implements ConnectionObserver.State
Specific Http Client state observable by HttpClient.observe(ConnectionObserver).
Author:
Stephane Maldini
  • Enum Constant Details

    • REQUEST_PREPARED

      public static final HttpClientState REQUEST_PREPARED
      The request has been prepared and ready for I/O handler to be invoked.
    • REQUEST_SENT

      public static final HttpClientState REQUEST_SENT
      The request has been sent.
    • RESPONSE_INCOMPLETE

      public static final HttpClientState RESPONSE_INCOMPLETE
      The request has been sent but the response has not been fully received and the connection has been prematurely closed.
    • RESPONSE_RECEIVED

      public static final HttpClientState RESPONSE_RECEIVED
      The response status and headers have been received.
    • RESPONSE_COMPLETED

      public static final HttpClientState RESPONSE_COMPLETED
      The response fully received.
    • STREAM_CONFIGURED

      public static final HttpClientState STREAM_CONFIGURED
      Propagated when a stream is bound to a channelOperation and ready for user interaction.
    • UPGRADE_REJECTED

      public static final HttpClientState 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

      public static final HttpClientState UPGRADE_SUCCESSFUL
      The H2C upgrade was successful.
  • Method Details

    • values

      public static HttpClientState[] 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

      public static HttpClientState valueOf(String name)
      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 name
      NullPointerException - if the argument is null