Skip to content

Commit 353d773

Browse files
committed
Adding additional comments to denote that a headers object is possible to pass in as a kwarg
1 parent 8bcf9d9 commit 353d773

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

splunklib/binding.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ class Context(object):
449449
:type username: ``string``
450450
:param password: The password for the Splunk account.
451451
:type password: ``string``
452+
:param headers: List of extra HTTP headers to send (optional).
453+
:type headers: ``list`` of 2-tuples.
452454
:param handler: The HTTP request handler (optional).
453455
:returns: A ``Context`` instance.
454456
@@ -976,6 +978,8 @@ def connect(**kwargs):
976978
:type username: ``string``
977979
:param password: The password for the Splunk account.
978980
:type password: ``string``
981+
:param headers: List of extra HTTP headers to send (optional).
982+
:type headers: ``list`` of 2-tuples.
979983
:param autologin: When ``True``, automatically tries to log in again if the
980984
session terminates.
981985
:type autologin: ``Boolean``

0 commit comments

Comments
 (0)