All Downloads are FREE. Search and download functionalities are using the official Maven repository.

giant.zenith_2.11.0.3.0.source-code.Virtual.scala Maven / Gradle / Ivy

There is a newer version: 0.4.5
Show newest version
/**
 *   __________            .__  __  .__
 *   \____    /____   ____ |__|/  |_|  |__
 *     /     // __ \ /    \|  \   __\  |  \
 *    /     /\  ___/|   |  \  ||  | |   Y  \
 *   /_______ \___  >___|  /__||__| |___|  /
 *           \/   \/     \/              \/
 */
package zenith

import cats.Monad

/**
 * HttpClientProvider
 */
abstract class HttpClientProvider[Z[_]]
{
  def create (config: client.HttpClientConfig): client.HttpClient[Z]
  def getClient (): Option[client.HttpClient[Z]]
  def destroy (): Unit
}

/**
 * HttpServerProvider
 */
abstract class HttpServerProvider[Z[_]] {
  def create (config: server.HttpServerConfig[Z], plugins: List[server.Plugin[Z]]): server.HttpServer[Z]
  def getServer (): Option[server.HttpServer[Z]]
  def destroy (): Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy