Predefined Directives (by trait) • Akka HTTP (original) (raw)
Predefined Directives (by trait)
All predefined directives are organized into traits that form one part of the overarching DirectivesDirectives trait.
Directives filtering or extracting from the request
Filter and extract based on the request method.
Filter and extract based on request headers.
Filter and extract based on request attributes.
Filter and extract from the request URI path.
Filter and extract based on the target host.
ParameterDirectives, FormFieldDirectives
Filter and extract based on query parameters or form fields (of Content-Type application/x-www-form-urlencoded
or multipart/form-data
).
Filter and decode compressed request content.
Extract the request entity.
Filter and extract based on the request scheme.
Handle authentication data from the request.
Filter and extract cookies.
BasicDirectives and MiscDirectives
Directives handling request properties.
Handle file uploads.
Extract and require aspects of TLS/mTLS connections
Require JWT token and extracts its claims
Directives creating or transforming the response
Support for conditional requests (304 Not Modified
responses).
Support for caching expensive operations.
Set, modify, or delete cookies.
Compress responses.
Deliver responses from files and resources.
Support for range requests (206 Partial Content
responses).
Change response properties.
Complete or reject a request with a response.
BasicDirectives and MiscDirectives
Directives handling or transforming response properties.
Configure request timeouts and automatic timeout responses.
List of predefined directives by trait
- AttributeDirectives
- BasicDirectives
- CacheConditionDirectives
- CachingDirectives
- CodingDirectives
- CookieDirectives
- CorsDirectives
- DebuggingDirectives
- ExecutionDirectives
- FileAndResourceDirectives
- FileUploadDirectives
- FormFieldDirectives
- FuturesDirectives
- HeaderDirectives
- HostDirectives
- JwtDirectives
- Marshalling Directives
- MethodDirectives
- MiscDirectives
- ParameterDirectives
- PathDirectives
- RangeDirectives
- RespondWithDirectives
- RouteDirectives
- SchemeDirectives
- SecurityDirectives
- WebSocketDirectives
- TimeoutDirectives
- TlsDirectives
Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.