Skip to content

Commit d9dd43d

Browse files
committed
update docs with kwargs
1 parent 2a33aae commit d9dd43d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/actinia/utils.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ def request_and_check(method, url, status_code=(200,), **kwargs):
3838
Parameters:
3939
method (string): Request method (GET, POST, PUT, DELETE, ...)
4040
url (string): URL as string
41-
status_code (int): Status code to check if it is set; default is 200
42-
auth (tuple): Tuple of user and password
43-
timeout (tuple): Tuple of connection timeout and read timeout
44-
headers (dict): Request headers
41+
status_code (tuple): Tuple of acceptable status codes to check
42+
if it is set; default is 200
43+
**kwargs:
44+
auth (tuple): Tuple of user and password
45+
timeout (tuple): Tuple of connection timeout and read timeout
46+
headers (dict): Request headers
47+
data (str): Request body to send (if needed)
4548
4649
Returns:
4750
(dict): returns text of the response as dictionary

0 commit comments

Comments
 (0)