elixir-plug / plug

Compose web applications with functions
https://hex.pm/packages/plug
Other
2.84k stars 582 forks source link

Adds except option to plug parsers #1165

Closed ityonemo closed 11 months ago

ityonemo commented 11 months ago

this PR adds an except option to Plug.Parsers that lets you selectively ignore path prefixes for the particular parser, useful if you have a plug that will do special-cased parsing.

josevalim commented 11 months ago

Hi @ityonemo! This shouldn't be a responsibility of individual plugs, but rather done in the pipeline. I have pushed an example to the docs, thanks!