Packages

package dsl

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait Http4sDsl[F[_]] extends Http4sDsl2[F, F]
  2. trait Http4sDsl2[F[_], G[_]] extends Methods with Statuses with Responses[F, G] with Auth

Value Members

  1. object &

    A conjunction extractor.

    A conjunction extractor. Generally used as an infix operator.

    scala> import org.http4s.dsl.&
    scala> object Even { def unapply(i: Int) = (i % 2) == 0 }
    scala> object Positive { def unapply(i: Int) = i > 0 }
    scala> def describe(i: Int) = i match {
         |   case Even() & Positive() => "even and positive"
         |   case Even() => "even but not positive"
         |   case Positive() => "positive but not even"
         |   case _ => "neither even nor positive"
         | }
    scala> describe(-1)
    res0: String = neither even nor positive
    scala> describe(0)
    res1: String = even but not positive
    scala> describe(1)
    res2: String = positive but not even
    scala> describe(2)
    res3: String = even and positive
  2. object Http4sDsl
  3. object io extends Http4sDsl[IO]

Ungrouped