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

spice.http.client.HttpClientInstance.scala Maven / Gradle / Ivy

The newest version!
package spice.http.client

import cats.effect.IO
import spice.http.{HttpRequest, HttpResponse, WebSocket}
import spice.net.URL

import scala.util.Try

trait HttpClientInstance {
  def send(request: HttpRequest): IO[Try[HttpResponse]]

  def webSocket(url: URL): WebSocket

  def dispose(): IO[Unit]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy