package server
- Source
- package.scala
- Alphabetic
- By Inheritance
- server
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package directives
Type Members
- 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.
- trait ConjunctionMagnet[L] extends AnyRef
- abstract class Directive[L] extends AnyRef
- type Directive0 = Directive[Unit]
- type Directive1[T] = Directive[(T)]
- 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.
- 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.
- trait ExceptionHandler extends PF
- trait ImplicitPathMatcherConstruction extends AnyRef
- 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.
- 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.
- 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.
- 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.
- 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 aValidationRejectioninstead. - 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.
- final case class MissingCookieRejection(cookieName: String) extends Rejection with Product with Serializable
Rejection created by the
cookiedirective.Rejection created by the
cookiedirective. Signals that the request was rejected because a cookie was not found. - 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.
- 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.
- 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.
- 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.
- type PathMatcher0 = PathMatcher[Unit]
- type PathMatcher1[T] = PathMatcher[(T)]
- trait PathMatchers extends AnyRef
- trait Rejection extends AnyRef
- trait RejectionHandler extends (Seq[Rejection]) => Option[Route]
- case class RequestContext(request: Request[IO], unmatchedPath: Path) extends Product with Serializable
- type Route = (RequestContext) => IO[RouteResult]
- type RouteGenerator[T] = (T) => Route
- sealed trait RouteResult extends AnyRef
- 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.
- abstract class StandardRoute extends Route
A Route that can be implicitly converted into a Directive (fitting any signature).
- implicit final class ToHttpRoutes extends AnyVal
- 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
getdirective is canceled by theputdirective (since the HTTP method did indeed match eventually). - case class ValidationRejection(message: String, cause: Option[Throwable]) extends Rejection with Product with Serializable
Rejection created by the
validationdirective as well as forIllegalArgumentExceptionsthrown by domain model constructors (e.g.Rejection created by the
validationdirective as well as forIllegalArgumentExceptionsthrown by domain model constructors (e.g. viarequire). It signals that an expected value was semantically invalid.
Value Members
- object AuthenticationFailedRejection extends Serializable
- 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.
- object ConjunctionMagnet
- object Directive
- object Directives extends Directives
Collects all default directives into one object for simple importing.
- object ExceptionHandler
- object PathMatcher extends ImplicitPathMatcherConstruction
- object PathMatchers extends PathMatchers
- object RejectionHandler
- object RequestContext extends Serializable
- object Route
- object RouteResult
- object StandardRoute