Skip to content

Instantly share code, notes, and snippets.

@adamw
Created October 14, 2019 08:43
Show Gist options
  • Save adamw/56061c27f49c523a474c30313f64cf81 to your computer and use it in GitHub Desktop.
Save adamw/56061c27f49c523a474c30313f64cf81 to your computer and use it in GitHub Desktop.
trait SttpBackend[F[_], -S, -WS_HANDLER[_]] {
def send[T](request: Request[T, S]): F[Response[T]]
def openWebsocket[T, WS_RESULT](
request: Request[T, S],
handler: WS_HANDLER[WS_RESULT]): F[WebSocketResponse[WS_RESULT]]
def close(): F[Unit]
def responseMonad: MonadError[F]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment