pl.iterators.stir.server

Members list

Type members

Classlikes

final case class AuthenticationFailedRejection(cause: Cause, challenge: Challenge) extends Rejection

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.

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.

Attributes

Companion
object
Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
Rejection.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Source
Directive.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
Directive.scala
Supertypes
class Object
trait Matchable
class Any
Self type
abstract class Directive[L](implicit val ev: Tuple[L])

Attributes

Companion
object
Source
Directive.scala
Supertypes
class Object
trait Matchable
class Any
object Directive

Attributes

Companion
class
Source
Directive.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Directive.type

Collects all default directives into one trait for simple importing.

object Directives extends Directives

Collects all default directives into one object for simple importing.

case class EntityRejection(e: DecodeFailure) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
trait ExceptionHandler extends PF

Attributes

Companion
object
Source
ExceptionHandler.scala
Supertypes
trait Throwable => Route
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
ExceptionHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class InvalidRequiredValueForQueryParamRejection(parameterName: String, expectedValue: String, actualValue: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MalformedFormFieldRejection(fieldName: String, errorMsg: String, cause: Option[Throwable]) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MalformedHeaderRejection(headerName: String, errorMsg: String, cause: Option[Throwable]) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MalformedQueryParamRejection(parameterName: String, errorMsg: String, cause: Option[Throwable]) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
case class MalformedRequestContentRejection(message: String, cause: Throwable) extends Rejection

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.

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.

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MethodRejection(supported: Method) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MissingCookieRejection(cookieName: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MissingFormFieldRejection(fieldName: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MissingHeaderRejection(headerName: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
final case class MissingQueryParamRejection(parameterName: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
abstract class PathMatcher[L](implicit val ev: Tuple[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.

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

Attributes

Companion
object
Source
PathMatcher.scala
Supertypes
trait Path => Matching[L]
class Object
trait Matchable
class Any
Known subtypes
class NumberMatcher[T]
object HexIntNumber
object HexLongNumber
object IntNumber
object LongNumber
object PathEnd
object Remaining
object RemainingPath
object Segment
object Slash
Show all
Self type

Attributes

Companion
class
Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait PathMatchers

Attributes

Companion
object
Source
PathMatcher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PathMatchers extends PathMatchers

Attributes

Companion
trait
Source
PathMatcher.scala
Supertypes
trait PathMatchers
class Object
trait Matchable
class Any
Self type
trait RejectionHandler extends (Seq[Rejection]) => Option[Route]

Attributes

Companion
object
Source
RejectionHandler.scala
Supertypes
trait (Seq[Rejection]) => Option[Route]
class Object
trait Matchable
class Any
Self type

Attributes

Companion
trait
Source
RejectionHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class RequestContext(request: Request[IO], unmatchedPath: Path)

Attributes

Companion
object
Source
RequestContext.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
RequestContext.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object Route

Attributes

Source
Route.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Route.type

Attributes

Companion
object
Source
RouteConcatenation.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
RouteConcatenation.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait RouteResult

Attributes

Companion
object
Source
RouteResult.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Complete
class Rejected
object RouteResult

Attributes

Companion
trait
Source
RouteResult.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SchemeRejection(supported: String) extends Rejection

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

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

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
abstract class StandardRoute extends Route

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

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

Attributes

Companion
object
Source
StandardRoute.scala
Supertypes
class Object
trait Matchable
class Any
object StandardRoute

Attributes

Companion
class
Source
StandardRoute.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final implicit class ToHttpRoutes(val route: Route) extends AnyVal

Attributes

Source
package.scala
Supertypes
class AnyVal
trait Matchable
class Any
final case class TransformationRejection(transform: (Seq[Rejection]) => Seq[Rejection]) extends Rejection

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.

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).

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all
case class ValidationRejection(message: String, cause: Option[Throwable]) extends Rejection

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.

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.

Attributes

Source
Rejection.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Rejection
class Object
trait Matchable
class Any
Show all

Types

Attributes

Source
package.scala
type Directive1[T] = Directive[Tuple1[T]]

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala
type RouteGenerator[T] = T => Route

Attributes

Source
package.scala

Implicits

Implicits

final implicit def ToHttpRoutes(route: Route): ToHttpRoutes

Attributes

Source
package.scala