Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package http4s
    Definition Classes
    org
  • package client

    Provides extension methods for using the a http4s org.http4s.client.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
p

org

http4s

package http4s

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. http4s
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AuthScheme = CaseInsensitiveString
  2. type AuthedService[T] = Kleisli[Task, AuthedRequest[T], Response]
  3. type Callback[A] = (\/[Throwable, A]) ⇒ Unit
  4. type DecodeResult[T] = EitherT[Task, DecodeFailure, T]
  5. type EntityBody = Process[Task, ByteVector]
  6. type EventStream = Process[Task, ServerSentEvent]
  7. type HttpService = Kleisli[Task, Request, Response]
  8. type ParseResult[+A] = \/[ParseFailure, A]
  9. type Service[A, B] = Kleisli[Task, A, B]

Value Members

  1. val ApiVersion: Http4sVersion
  2. val DefaultCharset: Charset
  3. def EmptyBody: EntityBody

Inherited from AnyRef

Inherited from Any

Ungrouped