Skip to content
Myr

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

3 files+15 added−19 removed

modified:requests/__init__.py+3 added-3 removed
40 unmodified lines
4142"""4344__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'505152from . import utils53from .models import Request, Response53from .models import Request, Response, PreparedRequest54from .api import request, get, head, post, patch, put, delete, options55from .sessions import session, Session56from .status_codes import codes57from .exceptions import (
14 unmodified lines
modified:requests/models.py+10 added-16 removed
357 unmodified lines
358 cookie_header = get_cookie_header(cookies, self)359 if cookie_header is not None:360 self.headers['Cookie'] = cookie_header361362 def send(self):363 pass364 # return362366 # def prepare_allow_363368369364class 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 lines
842 def prepare(self):843 return deepcopy(self)844845852class 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 = None855856863class Response(BaseResponse):857class 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 lines
modified:requests/sessions.py+2 added
162 unmodified lines
163 req.hooks = hooks164165 prep = req.prepare()166167 # TODO: prepare cookies.168169 return self.send(prep)170171172
212 unmodified lines