[99s-extend] Cowboy Middleware and websockets

Eduardo Gurgel edgurgel at gmail.com
Mon May 20 13:53:33 CEST 2013


On Sun, May 19, 2013 at 10:01 PM, Eduardo Gurgel <edgurgel at gmail.com> wrote:

> I want to write a cowboy middleware that works only on non-websocket
> requests. How can I achieve this? Is there any way that I ask the Request
> if this is a websocket request?
>
>
Thinking about my question, I see that the middleware (if it's behind the
cowboy_handler) can't figure if the connection will be upgraded or not.

Still, it would be cool if I could select which routes will be applied to
my middleware.

Am I making any sense? :)

-- 
Eduardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20130520/3cc045e8/attachment.html>


More information about the Extend mailing list