package client

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

import org.http4s.Status._
import org.http4s.Method._
import org.http4s.EntityDecoder

def client: Client = ???

val r: Task[String] = client(GET(uri(""))).as[String]
val r2: Task[DecodeResult[String]] = client(GET(uri(""))).attemptAs[String]   // implicitly resolve the decoder
val req1 =
val req2 =  // Each invocation fetches a new Result based on the behavior of the Client
Linear Supertypes
  1. Alphabetic
  2. By inheritance
  1. client
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
  1. Public
  2. All

Type Members

  1. trait Client extends AnyRef

  2. implicit final class NoBodySyntax extends AnyVal with EmptyRequestGenerator

  3. implicit final class WithBodySyntax extends AnyVal with EntityRequestGenerator

    Syntax classes to generate a request directly from a Method

Value Members

  1. package impl

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

Inherited from AnyRef

Inherited from Any