summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSaiyang Gou <gousaiyang@163.com>2021-04-23 10:19:08 (GMT)
committerGitHub <noreply@github.com>2021-04-23 10:19:08 (GMT)
commit927b841c215a1ca36c9b3203eadc67ce05b1ed07 (patch)
treedd5ff8d45bb64842451574b82eaac25a7b5dfd59 /Doc/library
parent32980fb669a6857276da18895fcc0cb6f6fbb544 (diff)
downloadcpython-927b841c215a1ca36c9b3203eadc67ce05b1ed07.zip
cpython-927b841c215a1ca36c9b3203eadc67ce05b1ed07.tar.gz
cpython-927b841c215a1ca36c9b3203eadc67ce05b1ed07.tar.bz2
bpo-37363: Add audit events to the `http.client` module (GH-21321)
Add audit events to the `http.client` module Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/http.client.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/http.client.rst b/Doc/library/http.client.rst
index 56f4c0a..e605f7b 100644
--- a/Doc/library/http.client.rst
+++ b/Doc/library/http.client.rst
@@ -368,6 +368,8 @@ HTTPConnection Objects
this is called automatically when making a request if the client does not
already have a connection.
+ .. audit-event:: http.client.connect self,host,port http.client.HTTPConnection.connect
+
.. method:: HTTPConnection.close()
@@ -437,6 +439,8 @@ also send your request step by step, by using the four functions below.
:meth:`endheaders` method has been called and before :meth:`getresponse` is
called.
+ .. audit-event:: http.client.send self,data http.client.HTTPConnection.send
+
.. _httpresponse-objects: