object AsyncHttpClient
- Source
- AsyncHttpClient.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AsyncHttpClient
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
allocate[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): F[(Client[F], F[Unit])]
Allocates a Client and its shutdown mechanism for freeing resources.
- val defaultConfig: DefaultAsyncHttpClientConfig
-
def
resource[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): Resource[F, Client[F]]
Create an HTTP client based on the AsyncHttpClient library
Create an HTTP client based on the AsyncHttpClient library
- config
configuration for the client
-
def
stream[F[_]](config: AsyncHttpClientConfig = defaultConfig)(implicit F: ConcurrentEffect[F]): Stream[F, Client[F]]
Create a bracketed HTTP client based on the AsyncHttpClient library.
Create a bracketed HTTP client based on the AsyncHttpClient library.
- config
configuration for the client
- returns
a singleton stream of the client. The client will be shutdown when the stream terminates.