Package

org.http4s.rho

bits

Permalink

package bits

Visibility
  1. Public
  2. All

Type Members

  1. class BooleanParser extends StringParser[Boolean]

    Permalink
  2. class DoubleParser extends StringParser[Double]

    Permalink
  3. abstract class EmptyResponseGenerator extends ResponseGenerator

    Permalink
  4. abstract class EntityResponseGenerator extends ResponseGenerator

    Permalink
  5. final case class FailureResponse(reason: ResponseReason) extends ResultResponse[Nothing] with Product with Serializable

    Permalink

    Response that signifies an error

    Response that signifies an error

    reason

    The reason for failure which can be turned into a Task[Response].

  6. class FloatParser extends StringParser[Float]

    Permalink
  7. trait HListToFunc[T <: HList, -F] extends AnyRef

    Permalink

    Converter of an value of type F to the HList of type T

    Converter of an value of type F to the HList of type T

    T

    HList type of the incoming values

    F

    type of element onto which T will be mapped

  8. trait HeaderAppendable[T <: HList] extends AnyRef

    Permalink

    Base trait which is capable of appending header rules

    Base trait which is capable of appending header rules

    T

    The HList representation of the values to be extracted from the Request.

  9. case class HeaderMetaData[T <: Extractable](key: T, default: Boolean) extends Metadata with Product with Serializable

    Permalink

    Metadata about a header rule

  10. class IntParser extends StringParser[Int]

    Permalink
  11. abstract class LocationResponseGenerator extends ResponseGenerator

    Permalink
  12. class LongParser extends StringParser[Long]

    Permalink
  13. trait Metadata extends AnyRef

    Permalink

    Base type for data that can be used to decorate the rules trees

    Base type for data that can be used to decorate the rules trees

    Metadata is not directly useful for evaluating a request or for generating HTTP responses; it is primarily used for storing data to auto generate information about a route or service.

  14. trait MethodAliases extends AnyRef

    Permalink
  15. final class PathTree extends AnyRef

    Permalink

    Data structure for route execution

    Data structure for route execution

    A PathTree contains a map of the known route paths. The values of the tree are RhoRoute's that can generate a reply to a Request.

  16. case class QueryMetaData[T](name: String, p: QueryParser[T], default: Option[T], m: scala.reflect.api.JavaUniverse.TypeTag[T]) extends Metadata with Product with Serializable

    Permalink

    Metadata about a query rule

  17. trait QueryParser[A] extends AnyRef

    Permalink

    Extract a value from the Request Query

    Extract a value from the Request Query

    A

    Type of value produced by the parser.

  18. sealed trait ResponseGenerator extends AnyRef

    Permalink

    Helpers to aid in the construction of a response function

    Helpers to aid in the construction of a response function

    These helpers provide the foundation for the response generation in the rho DSL. They require the needed codecs and generate a response with the correct meta data.

    { req => Ok("foo!") }
  19. trait ResponseGeneratorInstances extends AnyRef

    Permalink
  20. sealed trait ResultInfo extends AnyRef

    Permalink

    Information about the response type

  21. trait ResultMatcher[-R] extends AnyRef

    Permalink
  22. sealed trait ResultResponse[+T] extends RouteResult[T]

    Permalink

    Node in the ADT that represents a result, either success or failure

  23. sealed trait RouteResult[+T] extends AnyRef

    Permalink

    Types that represent the result of executing a step of the route

  24. class ShortParser extends StringParser[Short]

    Permalink
  25. case class StatusAndType(status: Status, tpe: scala.reflect.api.JavaUniverse.Type) extends ResultInfo with Product with Serializable

    Permalink
  26. case class StatusOnly(status: Status) extends ResultInfo with Product with Serializable

    Permalink
  27. trait StringParser[T] extends AnyRef

    Permalink

    Parse values from a String

    Parse values from a String

    T

    The result type generated by the parser.

  28. final case class SuccessResponse[+T](result: T) extends ResultResponse[T] with Product with Serializable

    Permalink

    Successful response

  29. trait TextMetaData extends Metadata

    Permalink

    Textual meta data

  30. case class TypeOnly(tpe: scala.reflect.api.JavaUniverse.Type) extends ResultInfo with Product with Serializable

    Permalink
  31. final case class TypedHeader[T <: HList](rule: RequestRule) extends Product with Serializable

    Permalink

    Typed shell for the Header operations of the DSL

  32. final case class TypedQuery[T <: HList](rule: RequestRule) extends UriConvertible with Product with Serializable

    Permalink

    Typed shell for the Query operations of the DSL

Value Members

  1. object FailureResponse extends Serializable

    Permalink
  2. object HListToFunc

    Permalink
  3. object MethodAliases extends MethodAliases

    Permalink
  4. object NoMatch extends RouteResult[Nothing] with Product with Serializable

    Permalink

    Failure to match a route

  5. object PathAST

    Permalink

    Actual elements which build up the AST

  6. object QueryParser

    Permalink
  7. object RequestAST

    Permalink

    Rules for extracting non-path related data from the Request

    Rules for extracting non-path related data from the Request

    This AST is subject to change.

  8. object ResponseGenerator

    Permalink
  9. object ResponseGeneratorInstances extends ResponseGeneratorInstances

    Permalink
  10. object ResultMatcher

    Permalink
  11. object StringParser

    Permalink
  12. object TypedQuery extends Serializable

    Permalink
  13. object UriConverter

    Permalink

    Helps to convert different parts of a route into an UriTemplate

Ungrouped