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 and Description |
|---|---|
| public static interface | HttpContinue.
A continue response that is in the process of being sent. |
| Modifier and Type | Field and Description |
|---|---|
| private static final AttachmentKey | |
| private static final Set | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpContinue. | Returns: The response senderThe exchange exchange)Creates a response sender that can be used to send a HTTP 100-continue response. |
| private static void | |
| public static boolean | |
| public static void | markContinueResponseSent(HttpServerExchange
The exchange exchange)Marks a continue response as already having been sent. |
| public static void | rejectExchange(final HttpServerExchange
The exchange to reject exchange)Sets a 417 response code and ends the exchange. |
| public static boolean | Returns: true if the server needs to send a continue responseThe exchange exchange)Returns true if this exchange requires the server to send a 100 (Continue) response. |
| public static boolean | |
| public static void | sendContinueResponse(final HttpServerExchange
The exchange exchange, final IoCallback The completion callback callback)Sends a continuation using async IO, and calls back when it is complete. |
| public static void | sendContinueResponseBlocking(final HttpServerExchange
The exchange exchange)Sends a continue response using blocking IO |
| ALREADY_SENT | back to summary |
|---|---|
| private static final AttachmentKey<Boolean> ALREADY_SENT | |
| COMPATIBLE_PROTOCOLS | back to summary |
|---|---|
| private static final Set<HttpString> COMPATIBLE_PROTOCOLS | |
| CONTINUE | back to summary |
|---|---|
| public static final String CONTINUE | |
| HttpContinue | back to summary |
|---|---|
| public HttpContinue() | |
| createResponseSender | back to summary |
|---|---|
| public static HttpContinue. Creates a response sender that can be used to send a HTTP 100-continue response.
| |
| internalSendContinueResponse | back to summary |
|---|---|
| private static void internalSendContinueResponse(final HttpServerExchange exchange, final IoCallback callback) | |
| isContinueResponseSent | back to summary |
|---|---|
| public static boolean isContinueResponseSent(HttpServerExchange exchange) | |
| markContinueResponseSent | back to summary |
|---|---|
| public static void markContinueResponseSent(HttpServerExchange exchange) Marks a continue response as already having been sent. In general this should only be used by low level handlers than need fine grained control over the continue response.
| |
| rejectExchange | back to summary |
|---|---|
| public static void rejectExchange(final HttpServerExchange exchange) Sets a 417 response code and ends the exchange.
| |
| requiresContinueResponse | back to summary |
|---|---|
| public static boolean requiresContinueResponse(final HttpServerExchange exchange) Returns true if this exchange requires the server to send a 100 (Continue) response.
| |
| requiresContinueResponse | back to summary |
|---|---|
| public static boolean requiresContinueResponse(HeaderMap requestHeaders) | |
| sendContinueResponse | back to summary |
|---|---|
| public static void sendContinueResponse(final HttpServerExchange exchange, final IoCallback callback) Sends a continuation using async IO, and calls back when it is complete.
| |
| sendContinueResponseBlocking | back to summary |
|---|---|
| public static void sendContinueResponseBlocking(final HttpServerExchange exchange) throws IOException Sends a continue response using blocking IO
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable() throws IOException | |
| awaitWritable | back to summary |
|---|---|
| public void awaitWritable(long time, final TimeUnit timeUnit) throws IOException | |
| send | back to summary |
|---|---|
| public boolean send() throws IOException Continue sending the response.
| |