Commit 879652ec by Ankush Thakur Committed by Tom Christie

Update 2-requests-and-responses.md (#4209)

Make the usage of httpie accept headers more explicit.
parent 498ce85f
...@@ -186,6 +186,8 @@ Similarly, we can control the format of the request that we send, using the `Con ...@@ -186,6 +186,8 @@ Similarly, we can control the format of the request that we send, using the `Con
"style": "friendly" "style": "friendly"
} }
If you add a `--debug` switch to the `http` requests above, you will be able to see the request type in request headers.
Now go and open the API in a web browser, by visiting [http://127.0.0.1:8000/snippets/][devserver]. Now go and open the API in a web browser, by visiting [http://127.0.0.1:8000/snippets/][devserver].
### Browsability ### Browsability
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment