Package com.apollographql.apollo3.network

Types

NetworkTransport
Link copied to clipboard
common
interface NetworkTransport

Functions

okHttpCallFactory
Link copied to clipboard
fun ApolloClient.Builder.okHttpCallFactory(callFactory: Call.Factory): ApolloClient.Builder
Configures the ApolloClient to use the callFactory for network requests.
fun HttpNetworkTransport.Builder.okHttpCallFactory(okHttpCallFactory: Call.Factory): HttpNetworkTransport.Builder
Configures the HttpNetworkTransport to use the okHttpCallFactory for network requests.
okHttpClient
Link copied to clipboard
fun ApolloClient.Builder.okHttpClient(okHttpClient: OkHttpClient): ApolloClient.Builder
Configures the ApolloClient to use the OkHttpClient for network requests.
fun HttpNetworkTransport.Builder.okHttpClient(okHttpClient: OkHttpClient): HttpNetworkTransport.Builder
Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.
fun WebSocketNetworkTransport.Builder.okHttpClient(okHttpClient: OkHttpClient): WebSocketNetworkTransport.Builder
Configures the WebSocketNetworkTransport to use the okHttpCallFactory for network requests.
toNSData
Link copied to clipboard
apple
fun ByteArray.toNSData(): NSData