(ContinueResponseTiming continueResponseTiming)
| 1248 | |
| 1249 | |
| 1250 | @Override |
| 1251 | protected final void ack(ContinueResponseTiming continueResponseTiming) { |
| 1252 | // Only try and send the ACK for ALWAYS or if the timing of the request |
| 1253 | // to send the ACK matches the current configuration. |
| 1254 | if (continueResponseTiming == ContinueResponseTiming.ALWAYS || |
| 1255 | continueResponseTiming == protocol.getContinueResponseTimingInternal()) { |
| 1256 | // Acknowledge request |
| 1257 | // Send a 100 status back if it makes sense (response not committed |
| 1258 | // yet, and client specified an expectation for 100-continue) |
| 1259 | if (!response.isCommitted() && request.hasExpectation()) { |
| 1260 | try { |
| 1261 | outputBuffer.sendAck(); |
| 1262 | } catch (IOException ioe) { |
| 1263 | setErrorState(ErrorState.CLOSE_CONNECTION_NOW, ioe); |
| 1264 | } |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | |
| 1270 | @Override |
no test coverage detected