PSPDFKit-labs / bypass

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
https://hex.pm/packages/bypass
MIT License
964 stars 111 forks source link

Match on request body #126

Open esambo opened 1 year ago

esambo commented 1 year ago

Is would be very helpful to match on the request body, and not just the method and path.

This might even help with with some/most of the use cases for #95

luiscaciatori commented 1 year ago

I accomplished using the the read_body/2 from Plug