-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer to use the Interceptor API over Pedestal's interceptor "Helpers" #12
Comments
Hi @ohpauleez |
The function-form of the helpers aren't frowned upon (although I tend to rarely use them), only the In most cases, Everything in Pedestal is an interceptor that takes and returns a context, and I think the helpers muddy that a bit. They were needed before there was a unified, extensible API, but that API now exists. |
Thanks, I will aim to remove the macros but I think with the extra steps involved in attaching the Swagger metadata as well there is still a use case for helper functions. |
Cool, let me know if you need help with anything! |
Pedestal's Interceptor Helpers are discouraged, and at some point, will be removed from Pedestal all together. Instead, you should use the interceptor API directly (via the
interceptor
function). You should avoid using macros to generate Interceptors, as this can often break AOT compilation.The text was updated successfully, but these errors were encountered: