summaryrefslogtreecommitdiff
path: root/Doc/library/logging.handlers.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-23 20:38:13 -0600
committerBenjamin Peterson <benjamin@python.org>2014-11-23 20:38:13 -0600
commit6c22e65773c94ff810bd7adbb43c2b52e269598a (patch)
tree30307d736adb065bbe175560f7d6f8528d552673 /Doc/library/logging.handlers.rst
parent83711e9bdf47d020d44997b74e1d24995130b992 (diff)
parent43052a14c1412893ae76253f1323a41769d09b07 (diff)
downloadcpython-git-6c22e65773c94ff810bd7adbb43c2b52e269598a.tar.gz
merge 3.4 (#22788)
Diffstat (limited to 'Doc/library/logging.handlers.rst')
-rw-r--r--Doc/library/logging.handlers.rst15
1 files changed, 10 insertions, 5 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index 8c6d24b168..7a46e6d1a8 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -839,17 +839,22 @@ supports sending logging messages to a Web server, using either ``GET`` or
``POST`` semantics.
-.. class:: HTTPHandler(host, url, method='GET', secure=False, credentials=None)
+.. class:: HTTPHandler(host, url, method='GET', secure=False, credentials=None, context=None)
Returns a new instance of the :class:`HTTPHandler` class. The *host* can be
- of the form ``host:port``, should you need to use a specific port number.
- If no *method* is specified, ``GET`` is used. If *secure* is true, an HTTPS
- connection will be used. If *credentials* is specified, it should be a
- 2-tuple consisting of userid and password, which will be placed in an HTTP
+ of the form ``host:port``, should you need to use a specific port number. If
+ no *method* is specified, ``GET`` is used. If *secure* is true, a HTTPS
+ connection will be used. The *context* parameter may be set to a
+ :class:`ssl.SSLContext` instance to configure the SSL settings used for the
+ HTTPS connection. If *credentials* is specified, it should be a 2-tuple
+ consisting of userid and password, which will be placed in a HTTP
'Authorization' header using Basic authentication. If you specify
credentials, you should also specify secure=True so that your userid and
password are not passed in cleartext across the wire.
+ .. versionchanged:: 3.4.3
+ The *context* parameter was added.
+
.. method:: mapLogRecord(record)
Provides a dictionary, based on ``record``, which is to be URL-encoded