Packages

package http

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package caching
  2. package ccompat

    INTERNAL API

  3. package cors
  4. package impl
  5. package javadsl
  6. package scaladsl
  7. package shaded

Type Members

  1. 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 rawRequestTarget is 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

  2. 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-handler setting.

    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 handle to emit a span for a request that never reaches the route handler (open-telemetry/opentelemetry-java-instrumentation#5139).

Ungrouped