Packages

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

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

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

    import cats.effect.IO
    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[IO] = ???
    
    val r: IO[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.unsafeRunSync
    val req2 = r.unsafeRunSync // Each invocation fetches a new Result based on the behavior of the Client
  • ClientTypes
  • Http4sClientDsl
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[F[_], T] = Kleisli[[β$1$]OptionT[F, β$1$], AuthedRequest[F, T], Response[F]]
  3. type Callback[A] = (Either[Throwable, A]) ⇒ Unit
  4. trait ClientTypes extends AnyRef
  5. type DecodeResult[F[_], A] = EitherT[F, DecodeFailure, A]
  6. type EntityBody[+F[_]] = Stream[F, Byte]
  7. type EventStream[F[_]] = Stream[F, ServerSentEvent]
  8. trait Http4sClientDsl [F[_]] extends AnyRef
  9. type HttpService[F[_]] = Kleisli[[β$0$]OptionT[F, β$0$], Request[F], Response[F]]
  10. type ParseResult[+A] = Either[ParseFailure, A]
  11. type Http4sSyntax = AllSyntax
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16) Moved to org.http4s.syntax.AllSyntax

  12. type Service[F[_], A, B] = Kleisli[F, A, B]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18) Deprecated in favor of just using Kleisli

Value Members

  1. val ApiVersion: Http4sVersion
  2. val DefaultCharset: Charset
  3. val EmptyBody: EntityBody[Nothing]
  4. object Http4sClientDsl

Deprecated Value Members

  1. val Http4sSyntax: all.type
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16) Moved to org.http4s.syntax.all

Inherited from AnyRef

Inherited from Any

Ungrouped