Builder
A builder for HttpNetworkTransport
Constructors
Functions
Link copied to clipboard
fun addInterceptor(interceptor: HttpInterceptor): HttpNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun exposeErrorBody(exposeErrorBody: Boolean): HttpNetworkTransport.Builder
Content copied to clipboard
Configures whether to expose the error body in ApolloHttpException.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun httpRequestComposer(httpRequestComposer: HttpRequestComposer): HttpNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
fun interceptors(interceptors: List<HttpInterceptor>): HttpNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
Extensions
Link copied to clipboard
fun HttpNetworkTransport.Builder.okHttpCallFactory(okHttpCallFactory: Call.Factory): HttpNetworkTransport.Builder
Content copied to clipboard
Configures the HttpNetworkTransport to use the okHttpCallFactory for network requests.
Link copied to clipboard
fun HttpNetworkTransport.Builder.okHttpClient(okHttpClient: OkHttpClient): HttpNetworkTransport.Builder
Content copied to clipboard
Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.