from .models import Request, Response, AuthObject
from .status_codes import codes
from .hooks import dispatch_hook
+from .utils import cookiejar_from_dict
+from urlparse import urlparse
__all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete')
:param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.
"""
+ if cookies is None:
+ cookies = {}
+
+ cookies = cookiejar_from_dict(cookies)
+
args = dict(
method = method,
url = url,