v1.0.0
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kenneth Reitz · committed by Kenneth Reitz · parent 7ec0170 · Browse files · 3 files·+15 added−19 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+15 added−19 removed
- other:+15 added−19 removed
Provenance
- Commit
bf05b7a- Tree
83bef78- Author
Kenneth Reitz <me@kennethreitz.com>- Committer
Kenneth Reitz <me@kennethreitz.com>- Parent
7ec0170
3 files changed+15 added−19 removed
modified:requests/__init__.py+3 added-3 removed
40 unmodified lines41 42 """43 44 __title__ = 'requests'45-__version__ = '0.14.2'46-__build__ = 0x00140245+__version__ = '1.0.0'46+__build__ = 0x0000047 __author__ = 'Kenneth Reitz'48 __license__ = 'Apache 2.0'49 __copyright__ = 'Copyright 2012 Kenneth Reitz'50 51 52 from . import utils53-from .models import Request, Response53+from .models import Request, Response, PreparedRequest54 from .api import request, get, head, post, patch, put, delete, options55 from .sessions import session, Session56 from .status_codes import codes57 from .exceptions import (14 unmodified linesmodified:requests/models.py+10 added-16 removed
357 unmodified lines358 cookie_header = get_cookie_header(cookies, self)359 if cookie_header is not None:360 self.headers['Cookie'] = cookie_header361 362- def send(self):363- pass364- # return362 366- # def prepare_allow_363 368-369-364 class OldRequest(object):365 """The :class:`Request <Request>` object. It carries out all functionality366 of Requests. Recommended interface is with the Requests functions.367 """474 unmodified lines842 def prepare(self):843 return deepcopy(self)844 845 852-class BaseResponse(object):853- """The basic Respone"""854- def __init__(self):855- self.url = None856- self.status_code = None857- self.reason = None858- self.headers = None859- self.data = None860- self.body = None846+# class BaseResponse(object):847+# """The basic Respone"""848+# def __init__(self):849+# self.url = None850+# self.status_code = None851+# self.reason = None852+# self.headers = None853+# self.data = None854+# self.body = None855 856 863-class Response(BaseResponse):857+class Response(object):858 """The core :class:`Response <Response>` object. All859 :class:`Request <Request>` objects contain a860 :class:`response <Response>` attribute, which is an instance861 of this class.225 unmodified linesmodified:requests/sessions.py+2 added
162 unmodified lines163 req.hooks = hooks164 165 prep = req.prepare()166 167+ # TODO: prepare cookies.168+169 return self.send(prep)170 171 172 212 unmodified lines