extract method
Produces the value, or the rejection that stops the handler.
Implementation
@override
Future<Result<String?, Rejection>> extract(Request request) async {
final query = request.url.query;
return Ok(query.isEmpty ? null : query);
}
Produces the value, or the rejection that stops the handler.
@override
Future<Result<String?, Rejection>> extract(Request request) async {
final query = request.url.query;
return Ok(query.isEmpty ? null : query);
}