package server

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

Package Members

  1. package directives

Type Members

  1. final case class AuthenticationFailedRejection(cause: Cause, challenge: Challenge) extends Rejection with Product with Serializable

    Rejection created by the various pl.iterators.stir.server.directives.SecurityDirectives.

    Rejection created by the various pl.iterators.stir.server.directives.SecurityDirectives. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.

  2. trait ConjunctionMagnet[L] extends AnyRef
  3. abstract class Directive[L] extends AnyRef
  4. type Directive0 = Directive[Unit]
  5. type Directive1[T] = Directive[(T)]
  6. trait Directives extends RouteConcatenation with BasicDirectives with CacheConditionDirectives with CookieDirectives with DebuggingDirectives with CodingDirectives with ExecutionDirectives with FileAndResourceDirectives with FileUploadDirectives with FormFieldDirectives with IODirectives with HeaderDirectives with HostDirectives with MarshallingDirectives with MethodDirectives with MiscDirectives with ParameterDirectives with TimeoutDirectives with PathDirectives with RangeDirectives with RespondWithDirectives with RouteDirectives with SchemeDirectives with SecurityDirectives with WebSocketDirectives with FramedEntityStreamingDirectives with AttributeDirectives with Http4sDirectives

    Collects all default directives into one trait for simple importing.

  7. case class EntityRejection(e: DecodeFailure) extends Rejection with Product with Serializable

    Rejection created by unmarshallers.

    Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.

  8. trait ExceptionHandler extends PF
  9. trait ImplicitPathMatcherConstruction extends AnyRef

  10. final case class InvalidRequiredValueForQueryParamRejection(parameterName: String, expectedValue: String, actualValue: String) extends Rejection with Product with Serializable

    Rejection created by parameter filters.

    Rejection created by parameter filters. Signals that the request was rejected because a query parameter value was not equal to required one.

  11. final case class MalformedFormFieldRejection(fieldName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Rejection created by form field filters.

    Rejection created by form field filters. Signals that the request was rejected because a form field could not be interpreted.

  12. final case class MalformedHeaderRejection(headerName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Rejection created by header directives.

    Rejection created by header directives. Signals that the request was rejected because a header value is malformed.

  13. final case class MalformedQueryParamRejection(parameterName: String, errorMsg: String, cause: Option[Throwable] = None) extends Rejection with Product with Serializable

    Rejection created by parameter filters.

    Rejection created by parameter filters. Signals that the request was rejected because a query parameter could not be interpreted.

  14. case class MalformedRequestContentRejection(message: String, cause: Throwable) extends Rejection with Product with Serializable

    Rejection created by unmarshallers.

    Rejection created by unmarshallers. Signals that the request was rejected because unmarshalling failed with an error that wasn't an IllegalArgumentException. Usually that means that the request content was not of the expected format. Note that semantic issues with the request content (e.g. because some parameter was out of range) will usually trigger a ValidationRejection instead.

  15. final case class MethodRejection(supported: Method) extends Rejection with Product with Serializable

    Rejection created by method filters.

    Rejection created by method filters. Signals that the request was rejected because the HTTP method is unsupported.

  16. final case class MissingCookieRejection(cookieName: String) extends Rejection with Product with Serializable

    Rejection created by the cookie directive.

    Rejection created by the cookie directive. Signals that the request was rejected because a cookie was not found.

  17. final case class MissingFormFieldRejection(fieldName: String) extends Rejection with Product with Serializable

    Rejection created by form field filters.

    Rejection created by form field filters. Signals that the request was rejected because a form field was not found.

  18. final case class MissingHeaderRejection(headerName: String) extends Rejection with Product with Serializable

    Rejection created by header directives.

    Rejection created by header directives. Signals that the request was rejected because a required header could not be found.

  19. final case class MissingQueryParamRejection(parameterName: String) extends Rejection with Product with Serializable

    Rejection created by parameter filters.

    Rejection created by parameter filters. Signals that the request was rejected because a query parameter was not found.

  20. abstract class PathMatcher[L] extends (Path) => Matching[L]

    A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatcher.Unmatched.

  21. type PathMatcher0 = PathMatcher[Unit]
  22. type PathMatcher1[T] = PathMatcher[(T)]
  23. trait PathMatchers extends AnyRef

  24. trait Rejection extends AnyRef
  25. trait RejectionHandler extends (Seq[Rejection]) => Option[Route]
  26. case class RequestContext(request: Request[IO], unmatchedPath: Path) extends Product with Serializable
  27. type Route = (RequestContext) => IO[RouteResult]
  28. type RouteGenerator[T] = (T) => Route
  29. sealed trait RouteResult extends AnyRef
  30. final case class SchemeRejection(supported: String) extends Rejection with Product with Serializable

    Rejection created by scheme filters.

    Rejection created by scheme filters. Signals that the request was rejected because the Uri scheme is unsupported.

  31. abstract class StandardRoute extends Route

    A Route that can be implicitly converted into a Directive (fitting any signature).

  32. implicit final class ToHttpRoutes extends AnyVal
  33. final case class TransformationRejection(transform: (Seq[Rejection]) => Seq[Rejection]) extends Rejection with Product with Serializable

    A special Rejection that serves as a container for a transformation function on rejections.

    A special Rejection that serves as a container for a transformation function on rejections. It is used by some directives to "cancel" rejections that are added by later directives of a similar type.

    Consider this route structure for example:

    put { reject(ValidationRejection("no") } ~ get { ... }

    If this structure is applied to a PUT request the list of rejections coming back contains three elements:

    1. A ValidationRejection 2. A MethodRejection 3. A TransformationRejection holding a function filtering out the MethodRejection

    so that in the end the RejectionHandler will only see one rejection (the ValidationRejection), because the MethodRejection added by the get directive is canceled by the put directive (since the HTTP method did indeed match eventually).

  34. case class ValidationRejection(message: String, cause: Option[Throwable]) extends Rejection with Product with Serializable

    Rejection created by the validation directive as well as for IllegalArgumentExceptions thrown by domain model constructors (e.g.

    Rejection created by the validation directive as well as for IllegalArgumentExceptions thrown by domain model constructors (e.g. via require). It signals that an expected value was semantically invalid.

Value Members

  1. object AuthenticationFailedRejection extends Serializable
  2. case object AuthorizationFailedRejection extends Rejection with Product with Serializable

    Rejection created by the 'authorize' directive.

    Rejection created by the 'authorize' directive. Signals that the request was rejected because the user is not authorized.

  3. object ConjunctionMagnet
  4. object Directive
  5. object Directives extends Directives

    Collects all default directives into one object for simple importing.

  6. object ExceptionHandler
  7. object PathMatcher extends ImplicitPathMatcherConstruction
  8. object PathMatchers extends PathMatchers
  9. object RejectionHandler
  10. object RequestContext extends Serializable
  11. object Route
  12. object RouteResult
  13. object StandardRoute

Inherited from AnyRef

Inherited from Any

Ungrouped