Skip to content

Commit 9653710

Browse files
committed
gh-135056: Revert document directory + custom_headers as kwargs
This reverts commit c376a71.
1 parent 89a89f0 commit 9653710

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Doc/library/http.server.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,15 @@ instantiation, of which this module provides three different variants:
369369
mapping the directory structure to HTTP requests.
370370

371371
.. versionchanged:: 3.7
372-
Added the *directory* keyword argument.
372+
Added the *directory* parameter.
373373

374374
.. versionchanged:: 3.9
375-
The *directory* keyword argument accepts a :term:`path-like object`.
375+
The *directory* parameter accepts a :term:`path-like object`.
376376

377377
.. versionchanged:: next
378-
Added a *response_headers* keyword argument, which accepts an optional
379-
iterable of name/value pairs of HTTP headers to add to each successful
380-
HTTP status 200 response. All other status code responses will not include
381-
these headers.
378+
Added *response_headers*, which accepts an optional iterable of
379+
name/value pairs of HTTP headers to add to each successful HTTP status 200
380+
response. All other status code responses will not include these headers.
382381

383382
A lot of the work, such as parsing the request, is done by the base class
384383
:class:`BaseHTTPRequestHandler`. This class implements the :func:`do_GET`

0 commit comments

Comments
 (0)