org.apache.pekko.http.scaladsl.server
Members list
Packages
Type members
Classlikes
Rejection created by the various pekko.http.scaladsl.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 pekko.http.scaladsl.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
Attributes
- Companion
- class
- Source
- Rejection.scala
- Supertypes
- 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
- Self type
Attributes
- Source
- ContentNegotiation.scala
- Supertypes
Rejection created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.
Rejection created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.
Attributes
- Source
- Rejection.scala
- Supertypes
Attributes
- Companion
- object
- Source
- Directive.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- Directive.scala
- Supertypes
- Self type
-
ConjunctionMagnet.type
Attributes
- Companion
- object
- Source
- ContentNegotiation.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ContentNegotiation.scala
- Supertypes
- Self type
-
ContentNegotiator.type
A directive that provides a tuple of values of type L to create an inner route.
A directive that provides a tuple of values of type L to create an inner route.
Attributes
- Companion
- object
- Source
- Directive.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Directive.scala
- Supertypes
- Self type
-
Directive.type
Collects all default directives into one trait for simple importing.
Collects all default directives into one trait for simple importing.
See pekko.http.javadsl.server.AllDirectives for JavaDSL equivalent of this trait.
Attributes
- Companion
- object
- Source
- Directives.scala
- Supertypes
-
trait AttributeDirectivestrait WebSocketDirectivestrait SecurityDirectivestrait SchemeDirectivestrait RouteDirectivestrait RespondWithDirectivestrait RangeDirectivestrait PathDirectivestrait PathMatcherstrait TimeoutDirectivestrait ParameterDirectivestrait MiscDirectivestrait MethodDirectivestrait MarshallingDirectivestrait HostDirectivestrait HeaderDirectivestrait FutureDirectivestrait FormFieldDirectivestrait FileUploadDirectivestrait ExecutionDirectivestrait CodingDirectivestrait DebuggingDirectivestrait CookieDirectivestrait CacheConditionDirectivestrait BasicDirectivestrait RouteConcatenationclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object Directivesclass HttpApp
Collects all default directives into one object for simple importing.
Collects all default directives into one object for simple importing.
See pekko.http.javadsl.server.Directives for JavaDSL equivalent of this trait.
Attributes
- Companion
- trait
- Source
- Directives.scala
- Supertypes
-
trait Directivestrait AttributeDirectivestrait WebSocketDirectivestrait SecurityDirectivestrait SchemeDirectivestrait RouteDirectivestrait RespondWithDirectivestrait RangeDirectivestrait PathDirectivestrait PathMatcherstrait TimeoutDirectivestrait ParameterDirectivestrait MiscDirectivestrait MethodDirectivestrait MarshallingDirectivestrait HostDirectivestrait HeaderDirectivestrait FutureDirectivestrait FormFieldDirectivestrait FileUploadDirectivestrait ExecutionDirectivestrait CodingDirectivestrait DebuggingDirectivestrait CookieDirectivestrait CacheConditionDirectivestrait BasicDirectivestrait RouteConcatenationclass Objecttrait Matchableclass AnyShow all
- Self type
-
Directives.type
Attributes
- Companion
- object
- Source
- ContentNegotiation.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ContentNegotiation.scala
- Supertypes
- Self type
-
EncodingNegotiator.type
Attributes
- Companion
- object
- Source
- ExceptionHandler.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- ExceptionHandler.scala
- Supertypes
- Self type
-
ExceptionHandler.type
Rejection created when a websocket request was expected but none was found.
Rejection created when a websocket request was expected but none was found.
Attributes
- Source
- Rejection.scala
- Supertypes
- Self type
Attributes
- Source
- PathMatcher.scala
- Supertypes
- Known subtypes
-
trait PathDirectivesobject PathDirectivestrait Directivesobject Directivesclass HttpAppobject PathMatcherShow all
Rejection created by pekko.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin. Signals that the request was rejected because Origin header value is invalid.
Rejection created by pekko.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin. Signals that the request was rejected because Origin header value is invalid.
Attributes
- Source
- Rejection.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Rejectiontrait InvalidOriginRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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
Attributes
- Companion
- object
- Source
- ContentNegotiation.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ContentNegotiation.scala
- Supertypes
- Self type
-
LanguageNegotiator.type
Attributes
- Source
- RouteResult.scala
- Supertypes
- Known subtypes
-
object RouteResult
Attributes
- Source
- RoutingLog.scala
- Supertypes
- Known subtypes
-
object RoutingLog
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
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 Serializabletrait Producttrait Equalstrait Rejectiontrait MalformedHeaderRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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
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
Attributes
- Source
- ContentNegotiation.scala
- Supertypes
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 Serializabletrait Producttrait Equalstrait Rejectiontrait MethodRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
Rejection created by attribute directives. Signals that the request was rejected because a required request attribute could not be found.
Rejection created by attribute directives. Signals that the request was rejected because a required request attribute could not be found.
Attributes
- Source
- Rejection.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Rejectiontrait MissingAttributeRejection[T]trait Rejectionclass Objecttrait Matchableclass AnyShow all
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 Serializabletrait Producttrait Equalstrait Rejectiontrait MissingCookieRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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
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 Serializabletrait Producttrait Equalstrait Rejectiontrait MissingHeaderRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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
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
- Known subtypes
-
class NumberMatcher[T]object HexIntNumberobject HexLongNumberobject IntNumberobject LongNumberobject PathEndobject Remainingobject RemainingPathobject Segmentobject SlashShow all
- Self type
-
PathMatcher[L]
Attributes
- Companion
- class
- Source
- PathMatcher.scala
- Supertypes
- Self type
-
PathMatcher.type
Attributes
- Companion
- object
- Source
- PathMatcher.scala
- Supertypes
- Known subtypes
-
trait PathDirectivesobject PathDirectivestrait Directivesobject Directivesclass HttpAppobject PathMatchersShow all
Attributes
- Companion
- trait
- Source
- PathMatcher.scala
- Supertypes
- Self type
-
PathMatchers.type
A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered up over the course of a Route evaluation and finally converted to pekko.http.scaladsl.model.HttpResponses by the handleRejections directive, if there was no way for the request to be completed.
A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered up over the course of a Route evaluation and finally converted to pekko.http.scaladsl.model.HttpResponses by the handleRejections directive, if there was no way for the request to be completed.
Attributes
- Source
- Rejection.scala
- Supertypes
- Known subtypes
-
trait CustomRejectionobject AuthorizationFailedRejectionclass InvalidOriginRejectionclass MethodRejectionclass MissingAttributeRejection[T]class MissingCookieRejectionclass MissingHeaderRejectionclass MalformedHeaderRejectionclass ValidationRejectionclass SchemeRejectionclass TooManyRangesRejectionclass TransformationRejectionShow all
A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)
A Throwable wrapping a Rejection. Can be used for marshalling Future[T] or Try[T] instances, whose failure side is supposed to trigger a route rejection rather than an Exception that is handled by the nearest ExceptionHandler. (Custom marshallers can of course use it as well.)
Attributes
- Source
- Rejection.scala
- Supertypes
-
trait Producttrait Equalsclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Source
- RejectionHandler.scala
- Supertypes
- Self type
Attributes
- Companion
- trait
- Source
- RejectionHandler.scala
- Supertypes
- Self type
-
RejectionHandler.type
Attributes
- Source
- Rejection.scala
- Supertypes
- Known subtypes
-
class MalformedHeaderRejectionclass ValidationRejection
This class is not meant to be extended by user code.
This class is not meant to be extended by user code.
Immutable object encapsulating the context of an pekko.http.scaladsl.model.HttpRequest as it flows through a pekko-http Route structure.
Attributes
- Source
- RequestContext.scala
- Supertypes
Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.
Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.
Attributes
- Source
- Rejection.scala
- Supertypes
- Self type
Attributes
- Source
- Route.scala
- Supertypes
- Self type
-
Route.type
Attributes
- Companion
- object
- Source
- RouteConcatenation.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- RouteConcatenation.scala
- Supertypes
- Self type
-
RouteConcatenation.type
The result of handling a request.
The result of handling a request.
As a user you typically don't create RouteResult instances directly. Instead, use the methods on the RequestContext to achieve the desired effect.
Attributes
- Companion
- object
- Source
- RouteResult.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- RouteResult.scala
- Supertypes
- Self type
-
RouteResult.type
Attributes
- Companion
- object
- Source
- RoutingLog.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- RoutingLog.scala
- Supertypes
- Self type
-
RoutingLog.type
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 Serializabletrait Producttrait Equalstrait Rejectiontrait SchemeRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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
Attributes
- Companion
- class
- Source
- StandardRoute.scala
- Supertypes
- Self type
-
StandardRoute.type
Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.
Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.
Attributes
- Source
- Rejection.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Rejectiontrait TooManyRangesRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
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:
- A ValidationRejection
- A MethodRejection
- 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 Serializabletrait Producttrait Equalstrait Rejectiontrait TransformationRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client
Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client
Attributes
- Source
- Rejection.scala
- Supertypes
Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client
Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client
Attributes
- Companion
- object
- Source
- Rejection.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Rejection.scala
- Supertypes
- Self type
Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.
Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.
Attributes
- Source
- Rejection.scala
- Supertypes
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
- Companion
- object
- Source
- Rejection.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Rejection.scala
- Supertypes
- Self type
Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.
Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.
Attributes
- Source
- Rejection.scala
- Supertypes
Rejection created when a websocket request was not handled because none of the given subprotocols was supported.
Rejection created when a websocket request was not handled because none of the given subprotocols was supported.
Attributes
- Source
- Rejection.scala
- Supertypes
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 Serializabletrait Producttrait Equalstrait Rejectiontrait ValidationRejectiontrait Rejectionclass Objecttrait Matchableclass AnyShow all
Deprecated classlikes
DEPRECATED, consider https://github.com/apache/pekko-http-quickstart-scala.g8 instead
DEPRECATED, consider https://github.com/apache/pekko-http-quickstart-scala.g8 instead
Bootstrap trait for Http Server. It helps booting up a pekko-http server by only defining the desired routes. It offers additional hooks to modify the default behavior.
Attributes
- Deprecated
- true
- Source
- HttpApp.scala
- Supertypes
-
trait Directivestrait AttributeDirectivestrait WebSocketDirectivestrait SecurityDirectivestrait SchemeDirectivestrait RouteDirectivestrait RespondWithDirectivestrait RangeDirectivestrait PathDirectivestrait PathMatcherstrait TimeoutDirectivestrait ParameterDirectivestrait MiscDirectivestrait MethodDirectivestrait MarshallingDirectivestrait HostDirectivestrait HeaderDirectivestrait FutureDirectivestrait FormFieldDirectivestrait FileUploadDirectivestrait ExecutionDirectivestrait CodingDirectivestrait DebuggingDirectivestrait CookieDirectivestrait CacheConditionDirectivestrait BasicDirectivestrait RouteConcatenationclass Objecttrait Matchableclass AnyShow all
Types
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Attributes
- Source
- package.scala
Value members
Concrete methods
Attributes
- Source
- package.scala