You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic structure of :enter, :leave, and :error functions
Creating an interceptor from a map
Interceptors as values (i.e., def with a map)
Interceptors constructed in functions (closing over state)
The IntoInterceptor protocol (use a defrecord for an example)
Async return from an interceptor
Streaming response bodies
Distinction between interceptors as a general technique vs. the HTTP handling interceptors in Pedestal
The text was updated successfully, but these errors were encountered:
mtnygard
changed the title
Content for "What is an Interceptor?" guide needs to be written
Content for the "What is an Interceptor?" guide needs to be written
Dec 20, 2016
I've fixed a couple of typos that I'll post a PR for if you like, but I'm not sure your intent with this paragraph (first sentence or so, really).
This is where we have to start being precise about the difference between an interceptor how it gets invoked. "Interceptor" is a very general concept.
Do you intend, ...the difference between an interceptor and middleware..., or ...start being precise about how an interceptor gets invoked. I feel like this is a placeholder for more explanation.
For that paragraph, the intent is to distinguish Interceptors as a general model for use in other, non-web, contexts versus the way that servlet-interceptor uses them.
It’s significant because the behavior of stopping once a response is attached is specific to the servlet-interceptor’s chain. Likewise, the notion of a handler function being treated automatically as an interceptor is very specific to web requests.
Not all of this will go into "What is an Interceptor?" which is more of a beginner's introduction, but I've verified that all the bullet-items in the list are present there or in the reference pages (or both).
Topics to cover:
:enter
,:leave
, and:error
functionsdef
with a map)IntoInterceptor
protocol (use adefrecord
for an example)The text was updated successfully, but these errors were encountered: