]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-85162: Add `HTTPSServer` to `http.server` to serve files over HTTPS (#129607)
authorSemyon Moroz <donbarbos@proton.me>
Sat, 5 Apr 2025 08:49:48 +0000 (12:49 +0400)
committerGitHub <noreply@github.com>
Sat, 5 Apr 2025 08:49:48 +0000 (08:49 +0000)
commit37bc3865c87bd777eebd41f1371b2add1bff433d
tree0141765a5410fee9f0c5c908288af10d97b316b1
parent99e9798d612222785db427eb295c847147fe5e78
gh-85162: Add `HTTPSServer` to `http.server` to serve files over HTTPS  (#129607)

The `http.server` module now supports serving over HTTPS using the `http.server.HTTPSServer` class.
This functionality is also exposed by the command-line interface (`python -m http.server`) through the
`--tls-cert`, `--tls-key` and `--tls-password-file` options.
Doc/library/http.server.rst
Doc/whatsnew/3.14.rst
Lib/http/server.py
Lib/test/test_httpservers.py
Misc/NEWS.d/next/Library/2025-02-02-00-30-09.gh-issue-85162.BNF_aJ.rst [new file with mode: 0644]