Closed TheAwiteb closed 2 years ago
I understand the idea, but it's still debatable whether this is desired or should be changed in the extract
method.
Some would say that it's a server error if the key can't be extracted, in other cases it has to do with authorization. This should probably be up to the KeyExtractor
implementation to figure this out. If extract
returned Result<Self::Key, actix_web::Error>
, the key extractor would be in charge of setting the correct behavior which IMO would be the better solution.
I think that it's good, response_error
method will use it when extract failed
it's missing a tests, i will add it, don't merge it
Is it ready to merge?
Yes ready 🎉
Alright, thanks for your contribution!
Will closes #23