Class/Object

featherbed

Client

Related Docs: object Client | package featherbed

Permalink

class Client extends RequestTypes with RequestBuilding

A REST client with a given base URL.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. RequestBuilding
  3. RequestTypes
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(baseUrl: URL, charset: Charset = StandardCharsets.UTF_8)

    Permalink

Type Members

  1. sealed trait CanBuildRequest[T] extends AnyRef

    Permalink

    Represents evidence that the request can be built.

    Represents evidence that the request can be built. For requests that include content, this requires that an implicit content.Encoder is available for the given Content-Type.

    T

    request type

    Definition Classes
    RequestBuilding
    Annotations
    @implicitNotFound( ... )
  2. case class DeleteRequest[Accept <: Coproduct](url: URL, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Accept, Client.DeleteRequest[Accept]] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  3. case class FormPostRequest[Accept <: Coproduct, Elements <: Either[None.type, NonEmptyList[ValidatedNel[Throwable, FormElement]]]](url: URL, form: Elements = Left(None), multipart: Boolean = false, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Accept, Client.FormPostRequest[Accept, Elements]] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  4. case class GetRequest[Accept <: Coproduct](url: URL, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Accept, Client.GetRequest[Accept]] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  5. case class HeadRequest(url: URL, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Nothing, Client.HeadRequest] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  6. case class PostRequest[Content, ContentType, Accept <: Coproduct](url: URL, content: Content, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Accept, Client.PostRequest[Content, ContentType, Accept]] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  7. case class PutRequest[Content, ContentType, Accept <: Coproduct](url: URL, content: Content, headers: List[(String, String)] = List.empty, charset: Charset = StandardCharsets.UTF_8) extends Client.RequestSyntax[Accept, Client.PutRequest[Content, ContentType, Accept]] with Product with Serializable

    Permalink
    Definition Classes
    RequestTypes
  8. sealed trait RequestSyntax[Accept <: Coproduct, Self <: Client.RequestSyntax[Accept, Self]] extends AnyRef

    Permalink
    Definition Classes
    RequestTypes

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object CanBuildRequest

    Permalink
    Definition Classes
    RequestBuilding
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val client: com.twitter.finagle.Http.Client

    Permalink
    Attributes
    protected
  7. def clientTransform(client: com.twitter.finagle.Http.Client): com.twitter.finagle.Http.Client

    Permalink
    Attributes
    protected
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def close(): Unit

    Permalink

    Close this client releasing allocated resources.

  10. def delete(relativePath: String): DeleteRequest[:+:[String("*/*"), CNil]]

    Permalink

    Specify a DELETE request to be performed against the given resource

    Specify a DELETE request to be performed against the given resource

    relativePath

    The path to the resource, relative to the baseUrl

    returns

    A DeleteRequest object, which can further specify and send the request

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get(relativePath: String): GetRequest[:+:[String("*/*"), CNil]]

    Permalink

    Specify a GET request to be performed against the given resource

    Specify a GET request to be performed against the given resource

    relativePath

    The path to the resource, relative to the baseUrl

    returns

    A GetRequest object, which can further specify and send the request

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def head(relativePath: String): HeadRequest

    Permalink

    Specify a HEAD request to be performed against the given resource

    Specify a HEAD request to be performed against the given resource

    relativePath

    The path to the resource, relative to the baseUrl

    returns

    A HeadRequest object, which can further specify and send the request

  18. val httpClient: Service[Request, Response]

    Permalink
    Attributes
    protected[featherbed]
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def post(relativePath: String): PostRequest[None.type, Nothing, :+:[String("*/*"), CNil]]

    Permalink

    Specify a POST request to be performed against the given resource

    Specify a POST request to be performed against the given resource

    relativePath

    The path to the resource, relative to the baseUrl

    returns

    A PostRequest object, which can further specify and send the request

  24. def put(relativePath: String): PutRequest[None.type, Nothing, :+:[String("*/*"), CNil]]

    Permalink

    Specify a PUT request to be performed against the given resource

    Specify a PUT request to be performed against the given resource

    relativePath

    The path to the resource, relative to the baseUrl

    returns

    A PutRequest object, which can further specify and send the request

  25. def serviceTransform(service: Service[Request, Response]): Service[Request, Response]

    Permalink
    Attributes
    protected
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RequestBuilding

Inherited from RequestTypes

Inherited from AnyRef

Inherited from Any

Ungrouped