@@ -242,7 +242,7 @@ class HTTPRequest(object):
242
242
validate_cert = True )
243
243
244
244
def __init__ (self , url , method = "GET" , headers = None , body = None ,
245
- auth_username = None , auth_password = None ,
245
+ auth_username = None , auth_password = None , auth_mode = None ,
246
246
connect_timeout = None , request_timeout = None ,
247
247
if_modified_since = None , follow_redirects = None ,
248
248
max_redirects = None , user_agent = None , use_gzip = None ,
@@ -259,8 +259,9 @@ def __init__(self, url, method="GET", headers=None, body=None,
259
259
:arg string method: HTTP method, e.g. "GET" or "POST"
260
260
:arg headers: Additional HTTP headers to pass on the request
261
261
:type headers: `~tornado.httputil.HTTPHeaders` or `dict`
262
- :arg string auth_username: Username for HTTP "Basic" authentication
263
- :arg string auth_password: Password for HTTP "Basic" authentication
262
+ :arg string auth_username: Username for HTTP authentication
263
+ :arg string auth_password: Password for HTTP authentication
264
+ :arg string auth_mode: Authentication mode (basic, digest)
264
265
:arg float connect_timeout: Timeout for initial connection in seconds
265
266
:arg float request_timeout: Timeout for entire request in seconds
266
267
:arg if_modified_since: Timestamp for ``If-Modified-Since`` header
@@ -322,6 +323,7 @@ def __init__(self, url, method="GET", headers=None, body=None,
322
323
self .body = utf8 (body )
323
324
self .auth_username = auth_username
324
325
self .auth_password = auth_password
326
+ self .auth_mode = auth_mode
325
327
self .connect_timeout = connect_timeout
326
328
self .request_timeout = request_timeout
327
329
self .follow_redirects = follow_redirects
0 commit comments