Comments (2)
This was added in pull request #2. However it's not true that DELETE requests no longer accept a body; only that the default behaviour for parameters attached to a DELETE request is to add them to the query string, rather than encode them in the body.
The reason for this change is that, as you point out, DELETE requests have no defined semantics for their bodies. Because they have no defined semantics, it doesn't make sense for parameters to be placed in the body by default, as they would with a POST or PUT.
If you do want to add parameters to the body of a DELETE request, you still can, you just need to be explicit about what you want:
(-> (request :delete "/foo")
(body {:foo "bar"}))
from ring-mock.
That sounds fair! — thanks for letting me know how to do the right way. I guess this issue can be closed now
from ring-mock.
Related Issues (13)
- Default port should be 443 when scheme is :https
- Old Clojure dependency means you can't open a REPL with current release of CIDER HOT 5
- What's the right way to simulate file upload HOT 8
- :protocol missing HOT 6
- No license file HOT 4
- Would you mind cutting a release? HOT 2
- Link "view source" in api documentation is broken
- What is `json-body` HOT 5
- post form-params bug HOT 1
- New release? HOT 1
- Support mocking websocket requests? HOT 1
- Add support for mocking multipart uploads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ring-mock.