HttpDataSourceResolverConfigScope

Functions

Link copied to clipboard
abstract fun client(client: HttpClient)

Sets a client for this DataSourceResolver. It overwrites previous HttpDataSourceResolverConfigScope.client calls.

abstract fun client(config: HttpClientConfig<*>.() -> Unit)

Sets an instance of HttpClient with given config for this DataSourceResolver. It overwrites previous HttpDataSourceResolverConfigScope.client calls.

abstract fun client(engine: HttpClientEngine, config: HttpClientConfig<*>.() -> Unit)

Sets an instance of HttpClient with given config and engine for this DataSourceResolver. It overwrites previous HttpDataSourceResolverConfigScope.client calls.

Link copied to clipboard

Associates this key with HttpEndpoint provided by provider.

Link copied to clipboard

Associates this key with endpoint.

Properties

Link copied to clipboard

HttpErrorMapper that is injected into HttpEndpoints that returns null from HttpEndpoint.errorMapper.

Link copied to clipboard
abstract var dispatcher: CoroutineDispatcher

Dispatcher that is used only to transformations associated with HTTP endpoint. Actual HTTP call is performed with dispatcher associated with HttpClient.