Class HttpContinue

java.lang.Object
io.undertow.server.HttpContinue

public class HttpContinue extends Object
Class that provides support for dealing with HTTP 100 (Continue) responses.

Note that if a client is pipelining some requests and sending continue for others this could cause problems if the pipelining buffer is enabled.

Author:
Stuart Douglas
  • Field Details

  • Constructor Details

    • HttpContinue

      public HttpContinue()
  • Method Details

    • requiresContinueResponse

      public static boolean requiresContinueResponse(HttpServerExchange exchange)
      Returns true if this exchange requires the server to send a 100 (Continue) response.
      Parameters:
      exchange - The exchange
      Returns:
      true if the server needs to send a continue response
    • requiresContinueResponse

      public static boolean requiresContinueResponse(List<String> expect)
    • rejectExchange

      public static void rejectExchange(HttpServerExchange exchange)
      Sets a 417 response code and ends the exchange.
      Parameters:
      exchange - The exchange to reject