diff --git a/src/treq/api.py b/src/treq/api.py index 915a9bfb..2ad09e7d 100644 --- a/src/treq/api.py +++ b/src/treq/api.py @@ -107,6 +107,12 @@ def request(method, url, **kwargs): :param bool unbuffered: Pass ``True`` to to disable response buffering. By default treq buffers the entire response body in memory. + :param agent: Provide your own custom agent. Use this to override things + like ``connectTimeout`` or ``BrowserLikePolicyForHTTPS``. By + default, treq will create its own Agent with reasonable + defaults. + :type agent: twisted.web.iweb.IAgent + :rtype: Deferred that fires with an IResponse provider. """