Searched refs:setSocketPolicy (Results 1 – 14 of 14) sorted by relevance
79 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinRootNotPresentInChain()89 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinRootNotPresentInChain()134 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinIntermediatePresentInChain()144 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinIntermediatePresentInChain()
36 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN); in peek()
226 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() method in MockResponse
34 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN); in peek()
192 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() method in MockResponse
93 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END) in connectionsAreNotReusedWithUnknownLengthResponseBody()151 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in silentRetryWhenIdempotentRequestFailsOnReusedConnection()170 .setSocketPolicy(SocketPolicy.SHUTDOWN_OUTPUT_AT_END)); in staleConnectionNotReusedForNonIdempotentRequest()
413 .setSocketPolicy(socketPolicy)); in testServerClosesOutput()599 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallback()615 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallbackFailuresRecorded()616 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallbackFailuresRecorded()642 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in sslFallbackNotUsedWhenRecycledConnectionFails()716 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in contentDisagreesWithContentLengthHeaderBodyTooShort()790 mockResponse.setSocketPolicy(SocketPolicy.DISCONNECT_AT_END); in contentDisagreesWithChunkedHeaderBodyTooShort()850 new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); in testConnectViaHttpProxyToHttps()878 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in connectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache()912 new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); in proxyConnectIncludesProxyHeadersOnly()[all …]
761 .setSocketPolicy(SocketPolicy.NO_RESPONSE)); in timeoutsNotRetried()883 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in recoverWhenRetryOnConnectionFailureIsTrue()896 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in noRecoverWhenRetryOnConnectionFailureIsFalse()914 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure()935 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled()959 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure_Async()977 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in noRecoveryFromTlsHandshakeFailureWhenTlsFallbackIsDisabled()1086 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in postBodyRetransmittedOnFailureRecovery()2036 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in proxyConnectOmitsApplicationHeaders()2074 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in proxyAuthenticateOnConnect()[all …]
2259 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()2283 response.setSocketPolicy(DISCONNECT_AT_END); in END_OF_STREAM()
183 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START)); in disconnectAtStart()258 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_DURING_REQUEST_BODY)); in disconnectRequestHalfway()286 .setSocketPolicy(SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY)); in disconnectResponseHalfway()
214 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START)); in testDisconnectAtStart()
260 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.NO_RESPONSE)); in readResponseHeaderTimeout()
1741 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()1807 response.setSocketPolicy(DISCONNECT_AT_END);
1758 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()1782 response.setSocketPolicy(DISCONNECT_AT_END); in END_OF_STREAM()