mirror of
https://github.com/httpie/cli.git
synced 2024-11-21 23:33:12 +01:00
Fix documentation styling errors.
This commit is contained in:
parent
f08c1bee17
commit
7509dd4e6c
@ -2225,30 +2225,30 @@ There are three possible sources of persisted cookies within a session. They hav
|
|||||||
|
|
||||||
1. Receive a response with a `Set-Cookie` header:
|
1. Receive a response with a `Set-Cookie` header:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http --session=./session.json pie.dev/cookie/set?foo=bar
|
$ http --session=./session.json pie.dev/cookie/set?foo=bar
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Send a cookie specified on the command line as seen in [cookies](#cookies):
|
2. Send a cookie specified on the command line as seen in [cookies](#cookies):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ http --session=./session.json pie.dev/headers Cookie:foo=bar
|
$ http --session=./session.json pie.dev/headers Cookie:foo=bar
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Manually set cookie parameters in the session file:
|
3. Manually set cookie parameters in the session file:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"cookies": {
|
"cookies": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"expires": null,
|
"expires": null,
|
||||||
"path": "/",
|
"path": "/",
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"value": "bar"
|
"value": "bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
In summary:
|
In summary:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user