Package

spinoco.fs2.http

routing

Permalink

package routing

Source
routing.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. routing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Base64Url extends AnyRef

    Permalink

    tags bytes encoded as Base64Url *

  2. trait BodyHelper[F[_]] extends AnyRef

    Permalink
  3. trait MatchResult[+F[_], +A] extends AnyRef

    Permalink
  4. sealed trait Matcher[+F[_], +A] extends AnyRef

    Permalink
  5. type Route[F[_]] = Matcher[F, Stream[F, HttpResponse[F]]]

    Permalink
  6. sealed trait StringDecoder[A] extends AnyRef

    Permalink

    Decoder for A to be decoded from supplied String

Value Members

  1. val Delete: Matcher[Nothing, protocol.http.HttpMethod.Value]

    Permalink
  2. val Get: Matcher[Nothing, protocol.http.HttpMethod.Value]

    Permalink
  3. object MatchResult

    Permalink
  4. object Matcher

    Permalink
  5. val Options: Matcher[Nothing, protocol.http.HttpMethod.Value]

    Permalink
  6. val Post: Matcher[Nothing, protocol.http.HttpMethod.Value]

    Permalink
  7. val Put: Matcher[Nothing, protocol.http.HttpMethod.Value]

    Permalink
  8. object StringDecoder

    Permalink
  9. def as[A](implicit decoder: StringDecoder[A]): Matcher[Nothing, A]

    Permalink

    decodes head of the path to A givne supplied decoder from string *

  10. def body[F[_]]: BodyHelper[F]

    Permalink

    extracts body of the request *

  11. def choice[F[_], A](matcher: Matcher[F, A], matchers: Matcher[F, A]*): Matcher[F, A]

    Permalink

    matches any supplied matcher *

  12. val empty: Matcher[Nothing, Unit]

    Permalink

    matches if remaining path segments are empty *

  13. def eval[F[_], A](f: F[A]): Matcher[F, A]

    Permalink

    Evaluates f returning its result as successful matcher

  14. def header[H <: HttpHeader](implicit T: Typeable[H]): Matcher[Nothing, H]

    Permalink

    matches header of type h *

  15. def method[F[_]](method: protocol.http.HttpMethod.Value): Matcher[F, protocol.http.HttpMethod.Value]

    Permalink

    matches supplied method *

  16. def param[A](key: String)(implicit decoder: StringDecoder[A]): Matcher[Nothing, A]

    Permalink

    Matches if query contains key and that can be decoded to A via supplied decoder

  17. def paramBase64(key: String, alphabet: Base64Alphabet = Bases.Alphabets.Base64Url): Matcher[Nothing, ByteVector]

    Permalink

    Decodes Base64 (Url) encoded binary data in parameter specified by key *

  18. def path: Matcher[Nothing, Path]

    Permalink

    matches to relative path in current context *

  19. def route[F[_]](r: Route[F])(implicit F: Suspendable[F]): (HttpRequestHeader, Stream[F, Byte]) ⇒ Stream[F, HttpResponse[F]]

    Permalink

    converts supplied route to function that is handled over to server to perform the routing *

  20. implicit def string2RequestMatcher(s: String): Matcher[Nothing, String]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped