Package

org

http4s

Permalink

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

    Permalink
  2. type AuthedService[F[_], T] = Kleisli[F, AuthedRequest[F, T], MaybeResponse[F]]

    Permalink
  3. type Callback[A] = (Either[Throwable, A]) ⇒ Unit

    Permalink
  4. trait ClientTypes extends AnyRef

    Permalink
  5. type DecodeResult[F[_], A] = EitherT[F, DecodeFailure, A]

    Permalink
  6. type EntityBody[+F[_]] = Stream[F, Byte]

    Permalink
  7. type EventStream[F[_]] = Stream[F, ServerSentEvent]

    Permalink
  8. trait Http4sClientDsl[F[_]] extends AnyRef

    Permalink
  9. type HttpService[F[_]] = Kleisli[F, Request[F], MaybeResponse[F]]

    Permalink
  10. type ParseResult[+A] = Either[ParseFailure, A]

    Permalink
  11. type Service[F[_], A, B] = Kleisli[F, A, B]

    Permalink
  12. type Http4sSyntax = AllSyntax

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Value Members

  1. val ApiVersion: Http4sVersion

    Permalink
  2. val DefaultCharset: Charset

    Permalink
  3. val EmptyBody: EntityBody[Nothing]

    Permalink
  4. object Http4sClientDsl

    Permalink
  5. package client

    Permalink

    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

Deprecated Value Members

  1. val Http4sSyntax: all.type

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Inherited from AnyRef

Inherited from Any

Ungrouped