Package

org.http4s

client

Permalink

package client

Provides extension methods for using the a http4s org.http4s.client.Client

import scalaz.concurrent.Task
import org.http4s._
import org.http4s.client._
import org.http4s.Http4s._
import org.http4s.Status._
import org.http4s.Method._
import org.http4s.EntityDecoder

def client: Client = ???

val r: Task[String] = client(GET(uri("https://www.foo.bar/"))).as[String]
val r2: DecodeResult[String] = client(GET(uri("https://www.foo.bar/"))).attemptAs[String] // implicitly resolve the decoder
val req1 = r.run
val req2 = r.run // Each invocation fetches a new Result based on the behavior of the Client
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. client
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. trait Client extends AnyRef

    Permalink
  2. type Middleware = (Client) ⇒ Client

    Permalink
  3. implicit final class NoBodySyntax extends AnyVal with EmptyRequestGenerator

    Permalink
  4. implicit final class WithBodySyntax extends AnyVal with EntityRequestGenerator

    Permalink

    Syntax classes to generate a request directly from a Method

Value Members

  1. package impl

    Permalink
  2. package middleware

    Permalink
  3. package oauth1

    Permalink

    Basic OAuth1 message signing support

    Basic OAuth1 message signing support

    This feature is not considered stable.

  4. implicit def wHeadersDec[T](implicit decoder: EntityDecoder[T]): EntityDecoder[(Headers, T)]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped