java.net.SocketException or java.net.SocketTimeoutException
may be thrown while writing the request entity after a timeout is reached on either the client or server.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if an early response was detected, otherwise false.The current request. request, HttpClientConnection The connection used to send the current request. connection, InputStream The response stream, this may be used to check for an early response. inputStream, long Number of bytes that have already been sent. totalBytesSent, long The size of a socket write operation that will follow this check. nextWriteSize)Called before each write to the to a socket |
| isEarlyResponseDetected | back to summary |
|---|---|
| public boolean isEarlyResponseDetected(ClassicHttpRequest request, HttpClientConnection connection, InputStream inputStream, long totalBytesSent, long nextWriteSize) throws IOException Called before each write to the to a socket
| |