Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nameless committed Nov 19, 2024
1 parent 1a61eee commit 73501a4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,12 @@ section generates a new :class:`URL` instance.

Name is encoded if needed.

If ``keep_query=True`` or ``keep_fragment=True`` it retains the existing query or fragment in the URL.

.. versionchanged:: 1.18

Added *keep_query* and *keep_fragment* parameters.

.. doctest::

>>> URL('http://example.com/path/to?arg#frag').with_name('new')
Expand All @@ -884,6 +890,12 @@ section generates a new :class:`URL` instance.

Name is encoded if needed.

If ``keep_query=True`` or ``keep_fragment=True`` it retains the existing query or fragment in the URL.

.. versionchanged:: 1.18

Added *keep_query* and *keep_fragment* parameters.

.. doctest::

>>> URL('http://example.com/path/to?arg#frag').with_suffix('.doc')
Expand Down

0 comments on commit 73501a4

Please sign in to comment.