public class HttpContinue
extends java.lang.Object
Note that if a client is pipelining some requests and sending continue for others this could cause problems if the pipelining buffer is enabled.
Modifier and Type | Class | Description |
---|---|---|
static interface |
HttpContinue.ContinueResponseSender |
A continue response that is in the process of being sent.
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CONTINUE |
Constructor | Description |
---|---|
HttpContinue() |
Modifier and Type | Method | Description |
---|---|---|
static HttpContinue.ContinueResponseSender |
createResponseSender(HttpServerExchange exchange) |
Creates a response sender that can be used to send a HTTP 100-continue response.
|
static void |
markContinueResponseSent(HttpServerExchange exchange) |
Marks a continue response as already having been sent.
|
static void |
rejectExchange(HttpServerExchange exchange) |
Sets a 417 response code and ends the exchange.
|
static boolean |
requiresContinueResponse(HttpServerExchange exchange) |
Returns true if this exchange requires the server to send a 100 (Continue) response.
|
static boolean |
requiresContinueResponse(HeaderMap requestHeaders) |
|
static void |
sendContinueResponse(HttpServerExchange exchange,
IoCallback callback) |
Sends a continuation using async IO, and calls back when it is complete.
|
static void |
sendContinueResponseBlocking(HttpServerExchange exchange) |
Sends a continue response using blocking IO
|
public static final java.lang.String CONTINUE
public static boolean requiresContinueResponse(HttpServerExchange exchange)
exchange
- The exchangetrue
if the server needs to send a continue responsepublic static boolean requiresContinueResponse(HeaderMap requestHeaders)
public static void sendContinueResponse(HttpServerExchange exchange, IoCallback callback)
exchange
- The exchangecallback
- The completion callbackpublic static HttpContinue.ContinueResponseSender createResponseSender(HttpServerExchange exchange) throws java.io.IOException
exchange
- The exchangejava.io.IOException
public static void markContinueResponseSent(HttpServerExchange exchange)
exchange
- The exchangepublic static void sendContinueResponseBlocking(HttpServerExchange exchange) throws java.io.IOException
exchange
- The exchangejava.io.IOException
public static void rejectExchange(HttpServerExchange exchange)
exchange
- The exchange to rejectCopyright © 2018. All rights reserved.