lfe-mug / lmug-elli

An lmug adaptor for the Elli web server.
http://lfe-mug.github.io/lmug-elli
Other
1 stars 0 forks source link

Discuss how (whether?) to handle {pre,post}process #8

Closed yurrriq closed 6 months ago

yurrriq commented 8 years ago

I'm not sure how exactly they should fit in with lmug, or if they should at all. Are there generic analogs across different webservers?

yurrriq commented 8 years ago

Bump.

This is the main issue holding me back from dogfooding lmug-elli at work.

yurrriq commented 8 years ago

On second thought we can probably handle pre- and post-processing just fine via normal Ring strategies. The real key difference from other webservers, perhaps, is that elli handlers can throw a response (or error to become a 500) at any time, thus short-circuiting the flow. While we can handle that easily in elli-lmug, being aware of the behaviour, I wonder how that might translate across other web servers generically.

If I write an lmug handler that throws to short circuit, how should I expect it to behave when I swap yaws for elli, for example?

oubiwann commented 6 months ago

lmug has gotten a massive rewrite and is much, much simpler. I'm closing many old tickets and creating new ones for next steps.