extractScheme

extractScheme

Description

Extracts the Uri scheme (i.e. "http", "https", etc.) for an incoming request.

For rejecting a request if it doesn't match a specified scheme name, see the scheme directive.

Example

TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: write example snippets for Akka HTTP Java DSL #20466.

Contents