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

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

There is a newer version: 3.0.0-RC3
Show newest version
package sttp

package object client extends SttpApi {
  type Identity[X] = X
  type Empty[X] = None.type
  type NothingT[X] = Nothing

  type PartialRequest[T, +S] = RequestT[Empty, T, S]
  type Request[T, +S] = RequestT[Identity, T, S]

  /**
    * Provide an implicit value of this type to serialize arbitrary classes into a request body.
    * Backends might also provide special logic for serializer instances which they define (e.g. to handle streaming).
    */
  type BodySerializer[B] = B => BasicRequestBody

  type RetryWhen = (Request[_, _], Either[Throwable, Response[_]]) => Boolean
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy