Package io.undertow.server
Class HttpContinue
java.lang.Object
io.undertow.server.HttpContinue
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrejectExchange(HttpServerExchange exchange) Sets a 417 response code and ends the exchange.static booleanrequiresContinueResponse(HttpServerExchange exchange) Returns true if this exchange requires the server to send a 100 (Continue) response.static booleanrequiresContinueResponse(List<String> expect)
-
Field Details
-
CONTINUE
- See Also:
-
-
Constructor Details
-
HttpContinue
public HttpContinue()
-
-
Method Details
-
requiresContinueResponse
Returns true if this exchange requires the server to send a 100 (Continue) response.- Parameters:
exchange- The exchange- Returns:
trueif the server needs to send a continue response
-
requiresContinueResponse
-
rejectExchange
Sets a 417 response code and ends the exchange.- Parameters:
exchange- The exchange to reject
-