CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
400 stars 29 forks source link

Implementing middlewares #157

Closed CrowdHailer closed 5 years ago

CrowdHailer commented 5 years ago

Implement a selection of middlewares.

This has been done all in one PR so that it can be coordinated with the final improvements to the middleware interface

CORS

There appear to be several "choices" when implementing a CORS middleware. Places where the existing tools (CORSPlug and Corsica) behave differently.

Flow chart 1 2

CrowdHailer commented 5 years ago

@nietaki My suggestion is that this PR would be replaced with one to add these middleware as separate hex packages to Raxx.Kit.

https://github.com/CrowdHailer/raxx/issues/118

nietaki commented 5 years ago

See my comment in #118, I'm not sure Raxx.Kit is the best place for extracted middlewares, in the short or long term.

CrowdHailer commented 5 years ago

Done in other places