Replies: 1 comment 4 replies
-
Yeah those two worlds are a little hard to bridge. Writing an extractor similar to this is probably easier. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems to me like there isn't really a way to use extractors in a closure used for
AsyncRequireAuthorizationLayer
fromtower-http
: that would require creatingRequestParts
and turning it back intoRequest
later, which can fail withaxum::Error
but that can't be turned intohttp::Response<_>
, whichAsyncRequireAuthorizationLayer
expects.Did I miss something?
Beta Was this translation helpful? Give feedback.
All reactions