You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-06-17 00:17:45 +02:00
Fix documentation styling errors.
This commit is contained in:
@ -2225,20 +2225,20 @@ There are three possible sources of persisted cookies within a session. They hav
|
|||||||
|
|
||||||
In summary:
|
In summary:
|
||||||
|
|
||||||
- Cookies set via the CLI overwrite cookies of the same name inside session files.
|
- Cookies set via the CLI overwrite cookies of the same name inside session files.
|
||||||
- Server-sent `Set-Cookie` header cookies overwrite any pre-existing ones with the same name.
|
- Server-sent `Set-Cookie` header cookies overwrite any pre-existing ones with the same name.
|
||||||
|
|
||||||
Cookie expiration handling:
|
Cookie expiration handling:
|
||||||
|
|
||||||
- When the server expires an existing cookie, HTTPie removes it from the session file.
|
- When the server expires an existing cookie, HTTPie removes it from the session file.
|
||||||
- When a cookie in a session file expires, HTTPie removes it before sending a new request.
|
- When a cookie in a session file expires, HTTPie removes it before sending a new request.
|
||||||
|
|
||||||
### Upgrading sessions
|
### Upgrading sessions
|
||||||
|
|
||||||
HTTPie may introduce changes in the session file format. When HTTPie detects an obsolete format, it shows a warning. You can upgrade your session files using the following commands:
|
HTTPie may introduce changes in the session file format. When HTTPie detects an obsolete format, it shows a warning. You can upgrade your session files using the following commands:
|
||||||
|
|
||||||
Upgrade all existing [named sessions](#named-sessions) inside the `sessions` subfolder of your [config directory](https://httpie.io/docs/cli/config-file-directory):
|
Upgrade all existing [named sessions](#named-sessions) inside the `sessions` subfolder of your [config directory](https://httpie.io/docs/cli/config-file-directory):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ httpie cli sessions upgrade-all
|
$ httpie cli sessions upgrade-all
|
||||||
Upgraded 'api_auth' @ 'pie.dev' to v3.1.0
|
Upgraded 'api_auth' @ 'pie.dev' to v3.1.0
|
||||||
@ -2247,8 +2247,8 @@ $ http --session=./session.json pie.dev/headers Cookie:foo=bar
|
|||||||
|
|
||||||
Upgrading individual sessions requires you to specify the session's hostname. That allows HTTPie to find the correct file in the case of name sessions. Additionally, it allows it to correctly bind cookies when upgrading with [`--bind-cookies`](#session-upgrade-options).
|
Upgrading individual sessions requires you to specify the session's hostname. That allows HTTPie to find the correct file in the case of name sessions. Additionally, it allows it to correctly bind cookies when upgrading with [`--bind-cookies`](#session-upgrade-options).
|
||||||
|
|
||||||
Upgrade a single [named session](#named-sessions):
|
Upgrade a single [named session](#named-sessions):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ httpie cli sessions upgrade pie.dev api_auth
|
$ httpie cli sessions upgrade pie.dev api_auth
|
||||||
Upgraded 'api_auth' @ 'pie.dev' to v3.1.0
|
Upgraded 'api_auth' @ 'pie.dev' to v3.1.0
|
||||||
|
Reference in New Issue
Block a user