alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
472 stars 42 forks source link

DELETE can have a body #30

Closed ilari-makimattila closed 3 years ago

ilari-makimattila commented 3 years ago

Hello,

Thanks for the library. It's helping me a lot!

At the moment I am working with an API that expects a body with a DELETE request. As far as I can tell a DELETE request is allowed to have a body, but since it's listed in the NON_BODY_METHODS here I can't use the fluent API to define the mock. Could delete be removed from that list?

This is not urgent because I can do a workaround with custom request matcher.

alexliesenfeld commented 3 years ago

Oh, I see.

alexliesenfeld commented 3 years ago

Has been fixed with V0.5.5