Message410973
The API of [`http.server`](https://docs.python.org/3/library/http.server.html) supports the `directory` optional parameter for `CGIHTTPRequestHandler` (which is inherited from `SimpleHTTPRequestHandler`). The CLI of `http.server` supports the corresponding `-d/--directory` option.
The `-d/--directory` option is passed to `SimpleHTTPRequestHandler` as the `directory` argument:
> python -m http.server --directory /tmp/
But the `-d/--directory` option is not passed to `CGIHTTPRequestHandler` (which is enabled with the `--cgi` option):
> python -m http.server --directory /tmp/ --cgi
So the option is ignored in that case. |
|
Date |
User |
Action |
Args |
2022-01-19 17:39:40 | maggyero | set | recipients:
+ maggyero, docs@python |
2022-01-19 17:39:40 | maggyero | set | messageid: <1642613980.51.0.0570385311323.issue46436@roundup.psfhosted.org> |
2022-01-19 17:39:40 | maggyero | link | issue46436 messages |
2022-01-19 17:39:40 | maggyero | create | |
|