package http
- Alphabetic
- Public
- Protected
Package Members
Type Members
- final class IllegalRequestContext extends AnyRef
What is known about a request that failed to parse, at the point where parsing gave up.
What is known about a request that failed to parse, at the point where parsing gave up.
Every field is optional because a request can be rejected before that part of it has been read: a request with an unsupported method fails before the request target is seen, and one with an unparsable request target fails before the protocol is seen.
Note that
rawRequestTargetis unvalidated, attacker-controlled input, by definition malformed whenever the rejection was caused by the request target itself. Anything that logs or echoes it has to escape it.- Since
2.0.0
- abstract class ParsingErrorHandler extends AnyRef
Produces the response to a request that failed to parse.
Produces the response to a request that failed to parse. Selected by the
pekko.http.server.parsing-error-handlersetting.This is also the earliest public symbol that observes a rejected request, so it is what observability tooling attaches to: the OpenTelemetry Java agent instruments
handleto emit a span for a request that never reaches the route handler (open-telemetry/opentelemetry-java-instrumentation#5139).
Value Members
- object DefaultParsingErrorHandler extends ParsingErrorHandler
- object IllegalRequestContext
- object Version