
org.http4s.client.Connection.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4s-client_2.11 Show documentation
Show all versions of http4s-client_2.11 Show documentation
Base library for building http4s clients
package org.http4s
package client
import scalaz.concurrent.Task
import org.log4s.getLogger
trait Connection {
private[this] val logger = getLogger
def runRequest(req: Request): Task[Response]
/** Determine if the connection is closed and resources have been freed */
def isClosed: Boolean
/** Determine if the connection is in a state that it can be recycled for another request. */
def isRecyclable: Boolean
/** Close down the connection, freeing resources and potentially aborting a [[Response]] */
def shutdown(): Unit
/** The key for requests we are able to serve */
def requestKey: RequestKey
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy