Skip navigation links
A C D E F G H I L O P R S T U V W 

A

addProxy(Proxy) - Method in class okhttp3.FakeProxySelector
 
allocate(int) - Method in class okhttp3.FakeDns
Allocates and returns count fake addresses like [255.0.0.100, 255.0.0.101].
appendingSink(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
apply(Statement, Description) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
apply(Statement, Description) - Method in class okhttp3.OkHttpClientTestRule
 
assertNoMoreSinks() - Method in class okhttp3.internal.duplex.AsyncRequestBody
 
assertRequests(String...) - Method in class okhttp3.FakeDns
 
assertResponseCookies(String...) - Method in class okhttp3.RecordingCookieJar
 
AsyncRequestBody - Class in okhttp3.internal.duplex
A duplex request body that keeps the provided sinks so they can be written to later.
AsyncRequestBody() - Constructor for class okhttp3.internal.duplex.AsyncRequestBody
 
awaitGarbageCollection() - Static method in class okhttp3.TestUtil
See FinalizationTester for discussion on how to best trigger GC in tests.

C

calls - Variable in class okhttp3.RecordingHostnameVerifier
 
clear(String) - Method in class okhttp3.FakeDns
Clears the results for hostname.
client - Variable in class okhttp3.OkHttpClientTestRule
 
connectFailed(URI, SocketAddress, IOException) - Method in class okhttp3.FakeProxySelector
 
contentLength() - Method in class okhttp3.ForwardingRequestBody
 
contentLength() - Method in class okhttp3.ForwardingResponseBody
 
contentType() - Method in class okhttp3.ForwardingRequestBody
 
contentType() - Method in class okhttp3.ForwardingResponseBody
 
contentType() - Method in class okhttp3.internal.duplex.AsyncRequestBody
 

D

defaultClient() - Static method in class okhttp3.TestUtil
Returns an OkHttpClient for all tests to use as a starting point.
delegate() - Method in class okhttp3.ForwardingRequestBody
 
delegate() - Method in class okhttp3.ForwardingResponseBody
 
delete(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
deleteContents(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 

E

enqueueRequestCookies(Cookie...) - Method in class okhttp3.RecordingCookieJar
 
ensureAllConnectionsReleased(OkHttpClient) - Static method in class okhttp3.TestUtil
 
ensureResourcesClosed() - Method in class okhttp3.internal.io.InMemoryFileSystem
 
exists(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 

F

FakeDns - Class in okhttp3
 
FakeDns() - Constructor for class okhttp3.FakeDns
 
FakeProxySelector - Class in okhttp3
 
FakeProxySelector() - Constructor for class okhttp3.FakeProxySelector
 
FakeSSLSession - Class in okhttp3
 
FakeSSLSession(Certificate...) - Constructor for class okhttp3.FakeSSLSession
 
ForwardingRequestBody - Class in okhttp3
 
ForwardingRequestBody(RequestBody) - Constructor for class okhttp3.ForwardingRequestBody
 
ForwardingResponseBody - Class in okhttp3
 
ForwardingResponseBody(ResponseBody) - Constructor for class okhttp3.ForwardingResponseBody
 

G

getApplicationBufferSize() - Method in class okhttp3.FakeSSLSession
 
getCipherSuite() - Method in class okhttp3.FakeSSLSession
 
getCreationTime() - Method in class okhttp3.FakeSSLSession
 
getId() - Method in class okhttp3.FakeSSLSession
 
getLastAccessedTime() - Method in class okhttp3.FakeSSLSession
 
getLocalCertificates() - Method in class okhttp3.FakeSSLSession
 
getLocalPrincipal() - Method in class okhttp3.FakeSSLSession
 
getPacketBufferSize() - Method in class okhttp3.FakeSSLSession
 
getPeerCertificateChain() - Method in class okhttp3.FakeSSLSession
 
getPeerCertificates() - Method in class okhttp3.FakeSSLSession
 
getPeerHost() - Method in class okhttp3.FakeSSLSession
 
getPeerPort() - Method in class okhttp3.FakeSSLSession
 
getPeerPrincipal() - Method in class okhttp3.FakeSSLSession
 
getProtocol() - Method in class okhttp3.FakeSSLSession
 
getSessionContext() - Method in class okhttp3.FakeSSLSession
 
getValue(String) - Method in class okhttp3.FakeSSLSession
 
getValueNames() - Method in class okhttp3.FakeSSLSession
 

H

headerEntries(String...) - Static method in class okhttp3.TestUtil
 

I

InMemoryFileSystem - Class in okhttp3.internal.io
A simple file system where all files are held in memory.
InMemoryFileSystem() - Constructor for class okhttp3.internal.io.InMemoryFileSystem
 
InstallUncaughtExceptionHandlerListener - Class in okhttp3.testing
A RunListener used to install an aggressive default Thread.UncaughtExceptionHandler similar to the one found on Android.
InstallUncaughtExceptionHandlerListener() - Constructor for class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
intercept(Interceptor.Chain) - Method in class okhttp3.UppercaseRequestInterceptor
 
intercept(Interceptor.Chain) - Method in class okhttp3.UppercaseResponseInterceptor
 
invalidate() - Method in class okhttp3.FakeSSLSession
 
isDuplex() - Method in class okhttp3.ForwardingRequestBody
 
isDuplex() - Method in class okhttp3.internal.duplex.AsyncRequestBody
 
isValid() - Method in class okhttp3.FakeSSLSession
 

L

loadForRequest(HttpUrl) - Method in class okhttp3.RecordingCookieJar
 
lookup(String, int) - Method in class okhttp3.FakeDns
 
lookup(String) - Method in class okhttp3.FakeDns
 

O

okhttp3 - package okhttp3
 
okhttp3.internal.duplex - package okhttp3.internal.duplex
 
okhttp3.internal.io - package okhttp3.internal.io
 
okhttp3.testing - package okhttp3.testing
 
OkHttpClientTestRule - Class in okhttp3
 
OkHttpClientTestRule() - Constructor for class okhttp3.OkHttpClientTestRule
 

P

proxies - Variable in class okhttp3.FakeProxySelector
 
putValue(String, Object) - Method in class okhttp3.FakeSSLSession
 

R

RecordingCookieJar - Class in okhttp3
 
RecordingCookieJar() - Constructor for class okhttp3.RecordingCookieJar
 
RecordingHostnameVerifier - Class in okhttp3
 
RecordingHostnameVerifier() - Constructor for class okhttp3.RecordingHostnameVerifier
 
removeValue(String) - Method in class okhttp3.FakeSSLSession
 
rename(File, File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
repeat(char, int) - Static method in class okhttp3.TestUtil
 

S

saveFromResponse(HttpUrl, List<Cookie>) - Method in class okhttp3.RecordingCookieJar
 
select(URI) - Method in class okhttp3.FakeProxySelector
 
set(String, List<InetAddress>) - Method in class okhttp3.FakeDns
Sets the results for hostname.
sink(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
size(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 
source() - Method in class okhttp3.ForwardingResponseBody
 
source(File) - Method in class okhttp3.internal.io.InMemoryFileSystem
 

T

takeResponseCookies() - Method in class okhttp3.RecordingCookieJar
 
takeSink() - Method in class okhttp3.internal.duplex.AsyncRequestBody
 
testRunFinished(Result) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
testRunStarted(Description) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
testStarted(Description) - Method in class okhttp3.testing.InstallUncaughtExceptionHandlerListener
 
TestUtil - Class in okhttp3
 
toString() - Method in class okhttp3.ForwardingRequestBody
 
toString() - Method in class okhttp3.ForwardingResponseBody
 

U

UNREACHABLE_ADDRESS - Static variable in class okhttp3.TestUtil
 
UppercaseRequestInterceptor - Class in okhttp3
Rewrites the request body sent to the server to be all uppercase.
UppercaseRequestInterceptor() - Constructor for class okhttp3.UppercaseRequestInterceptor
 
UppercaseResponseInterceptor - Class in okhttp3
Rewrites the response body returned from the server to be all uppercase.
UppercaseResponseInterceptor() - Constructor for class okhttp3.UppercaseResponseInterceptor
 

V

verify(String, SSLSession) - Method in class okhttp3.RecordingHostnameVerifier
 

W

writeTo(BufferedSink) - Method in class okhttp3.ForwardingRequestBody
 
writeTo(BufferedSink) - Method in class okhttp3.internal.duplex.AsyncRequestBody
 
A C D E F G H I L O P R S T U V W 
Skip navigation links

Copyright © 2019. All Rights Reserved.