Mercurial > hg > htest
annotate htest/session.py @ 1:f3e18bcfb90b default tip
more stubbing
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Fri, 09 Sep 2016 16:20:35 -0700 |
parents | 26f27678ae32 |
children |
rev | line source |
---|---|
0 | 1 """ |
2 HTTP session abstraction | |
3 """ | |
4 | |
5 import requests | |
6 | |
7 class SessionProfiling(object): | |
8 | |
9 def __init__(self, session=None): | |
10 self.session = requests.session() if session is None else session | |
11 | |
12 def __call__(self, method, url, **kwargs): | |
13 raise NotImplementedError('TODO') |