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

sttp.capabilities.package.scala Maven / Gradle / Ivy

There is a newer version: 1.3.22
Show newest version
package sttp

package object capabilities {

  /** A capability of sending and receiving streaming bodies.
    * @tparam S
    *   The type to use as a capability. Should be the self-type of the implementation. This is needed so that
    *   capabilities are expressed in terms of class types, not singleton object types.
    */
  class Streams[S] {
    type BinaryStream
    type Pipe[_, _]
  }

  /** A capability of supporting the given effect type, such as [[scala.concurrent.Future]]. Used only as a type
    * parameter, without implementations.
    */
  trait Effect[F[_]]

  /** A capability of sending websocket requests. Used only as a type parameter, without implementations.
    */
  trait WebSockets
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy