Given a parameter name and a query string content, returns a decoded parameter
value of type T
, or Invalid
if decoding failed
Given a parameter name and a query string content, returns a decoded parameter
value of type T
, or Invalid
if decoding failed
This method is called by endpoints when decoding a request failed.
This method is called by endpoints when decoding a request failed.
The provided implementation calls clientErrorsResponse
to complete
with a response containing the errors.
This method can be overridden to customize the error reporting logic.
This method is called by endpoints when an exception is thrown during request processing.
This method is called by endpoints when an exception is thrown during request processing.
The provided implementation uses serverErrorResponse to complete with a response containing the error message.
This method can be overridden to customize the error reporting logic.
Simpler alternative to Directive.&()
method
Simpler alternative to Directive.&()
method
Interpreter for algebra.Endpoints that performs routing using Akka-HTTP and uses algebra.BuiltInErrors to model client and server errors.