
org.http4s.client.blaze.SimpleHttp1Client.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4s-blaze-client_2.10 Show documentation
Show all versions of http4s-blaze-client_2.10 Show documentation
blaze implementation for http4s clients
package org.http4s
package client
package blaze
/** Create HTTP1 clients which will disconnect on completion of one request */
object SimpleHttp1Client {
/** create a new simple client
*
* @param config blaze configuration object
*/
def apply(config: BlazeClientConfig = BlazeClientConfig.defaultConfig) = {
val (ex, shutdown) = bits.getExecutor(config)
val manager = ConnectionManager.basic(Http1Support(config, ex))
BlazeClient(manager, config, manager.shutdown().flatMap(_ =>shutdown))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy