forked from extern/httpie-cli
Fix docs formatting
This commit is contained in:
parent
e1c08a3de5
commit
031b4b89e3
2
Makefile
2
Makefile
@ -140,7 +140,7 @@ codecov-upload:
|
|||||||
|
|
||||||
doc-check:
|
doc-check:
|
||||||
@echo $(H1)Running documentations checks$(H1END)
|
@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 .
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -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:
|
In addition to the standard methods (`GET`, `POST`, `HEAD`, `PUT`, `PATCH`, `DELETE`, etc.), you can use custom method names, for example:
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http AHOY pie.dev/post
|
$ 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:
|
The `METHOD` argument is optional, and when you don’t specify it, HTTPie defaults to:
|
||||||
|
|
||||||
* `GET` for requests without body
|
- `GET` for requests without body
|
||||||
* `POST` for requests with body
|
- `POST` for requests with body
|
||||||
|
|
||||||
Here we don’t specify any request data, so both commands will send the same `GET` request:
|
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:
|
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
|
$ http POST pie.dev/post hello=world
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -309,8 +308,6 @@ $ http POST pie.dev/post hello=world
|
|||||||
$ http pie.dev/post hello=world
|
$ http pie.dev/post hello=world
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Request URL
|
## Request URL
|
||||||
|
|
||||||
The only information HTTPie needs to perform a request is a URL.
|
The only information HTTPie needs to perform a request is a URL.
|
||||||
|
Loading…
Reference in New Issue
Block a user