mirror of
https://github.com/httpie/cli.git
synced 2025-06-06 23:36:27 +02:00
CHANGELOG + README
This commit is contained in:
parent
9500ce136a
commit
ecdeffe7c8
@ -8,6 +8,8 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
|
|||||||
|
|
||||||
`2.3.0-dev`_ (unreleased)
|
`2.3.0-dev`_ (unreleased)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
* Added support for combining cookies specified on the CLI and in a session file (`#932`_).
|
||||||
|
|
||||||
|
|
||||||
`2.2.0`_ (2020-06-18)
|
`2.2.0`_ (2020-06-18)
|
||||||
-------------------------
|
-------------------------
|
||||||
@ -455,4 +457,5 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
|
|||||||
.. _#895: https://github.com/jakubroztocil/httpie/issues/895
|
.. _#895: https://github.com/jakubroztocil/httpie/issues/895
|
||||||
.. _#920: https://github.com/jakubroztocil/httpie/issues/920
|
.. _#920: https://github.com/jakubroztocil/httpie/issues/920
|
||||||
.. _#925: https://github.com/jakubroztocil/httpie/issues/925
|
.. _#925: https://github.com/jakubroztocil/httpie/issues/925
|
||||||
|
.. _#932: https://github.com/jakubroztocil/httpie/issues/932
|
||||||
.. _#934: https://github.com/jakubroztocil/httpie/issues/934
|
.. _#934: https://github.com/jakubroztocil/httpie/issues/934
|
||||||
|
14
README.rst
14
README.rst
@ -1747,11 +1747,11 @@ exchange after it has been created, specify the session name via
|
|||||||
Cookie Storage Behaviour
|
Cookie Storage Behaviour
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
**TL;DR:** Cookie storage priority: Server response > Command line request > Session file
|
**TL;DR:** Cookie storage priority: Server response > Command line request > Session file
|
||||||
|
|
||||||
To set a cookie within a Session there are three options:
|
To set a cookie within a Session there are three options:
|
||||||
|
|
||||||
1. Get a `Set-Cookie` header in a response from a server
|
1. Get a ``Set-Cookie`` header in a response from a server
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
@ -1766,7 +1766,7 @@ To set a cookie within a Session there are three options:
|
|||||||
3. Manually set cookie parameters in the json file of the session
|
3. Manually set cookie parameters in the json file of the session
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: json
|
||||||
|
|
||||||
{
|
{
|
||||||
"__meta__": {
|
"__meta__": {
|
||||||
"about": "HTTPie session file",
|
"about": "HTTPie session file",
|
||||||
@ -1789,13 +1789,13 @@ To set a cookie within a Session there are three options:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Cookies will be set in the session file with the priority specified above. For example, a cookie
|
Cookies will be set in the session file with the priority specified above. For example, a cookie
|
||||||
set through the command line will overwrite a cookie of the same name stored
|
set through the command line will overwrite a cookie of the same name stored
|
||||||
in the session file. If the server returns a `Set-Cookie` header with a
|
in the session file. If the server returns a ``Set-Cookie`` header with a
|
||||||
cookie of the same name, the returned cookie will overwrite the preexisting cookie.
|
cookie of the same name, the returned cookie will overwrite the preexisting cookie.
|
||||||
|
|
||||||
Expired cookies are never stored. If a cookie in a session file expires, it will be removed before
|
Expired cookies are never stored. If a cookie in a session file expires, it will be removed before
|
||||||
sending a new request. If the server expires an existing cookie, it will also be removed from the
|
sending a new request. If the server expires an existing cookie, it will also be removed from the
|
||||||
session file.
|
session file.
|
||||||
|
|
||||||
|
|
||||||
Config
|
Config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user