Plug + Cowboy

I have a cowboy 1.0 project running. I want to use plug along with it to add more functionality to my project. I know plug uses cowboy but i have all handlers already setup. How do i direct plug to use my handlers?

I don’t think you can do that.


Plug would be added to cowboy as its own path handlers, so other cowboy handlers (including even other Plug instances) can all be running on cowboy. You’d just link in Plug’s handlers as siblings to the others in Cowboy for a given Plug project. :slight_smile:

Each cowboy handler is distinct though, they do not share anything that is not directly called.