1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

Fix docs formatting

This commit is contained in:
Mickaël Schoentgen 2021-10-05 15:46:05 +02:00
parent e1c08a3de5
commit 031b4b89e3
2 changed files with 4 additions and 7 deletions

View File

@ -140,7 +140,7 @@ codecov-upload:
doc-check:
@echo $(H1)Running documentations checks$(H1END)
mdl --verbose --git-recurse --style docs/linter/mdl-styles.rb .
mdl --git-recurse --style docs/linter/mdl-styles.rb .
###############################################################################

View File

@ -265,7 +265,6 @@ DELETE /delete HTTP/1.1
In addition to the standard methods (`GET`, `POST`, `HEAD`, `PUT`, `PATCH`, `DELETE`, etc.), you can use custom method names, for example:
```bash
$ http AHOY pie.dev/post
```
@ -286,8 +285,8 @@ $ http GET pie.dev/get hello=world
The `METHOD` argument is optional, and when you don’t specify it, HTTPie defaults to:
* `GET` for requests without body
* `POST` for requests with body
- `GET` for requests without body
- `POST` for requests with body
Here we don’t specify any request data, so both commands will send the same `GET` request:
@ -301,7 +300,7 @@ $ http pie.dev/get
Here, on the other hand, we do have some data, so both commands will make the same `POST` request:
```
```bash
$ http POST pie.dev/post hello=world
```
@ -309,8 +308,6 @@ $ http POST pie.dev/post hello=world
$ http pie.dev/post hello=world
```
## Request URL
The only information HTTPie needs to perform a request is a URL.