elixir-plug / plug

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

Adds except option to plug parsers #1165

Closed ityonemo closed 1 year ago

ityonemo commented 1 year 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 1 year 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!