1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Added 'scheme' to Request with matcher and test

This commit is contained in:
Max Shytikov
2014-04-07 01:56:55 +02:00
parent 4e9d5f6885
commit 4267828a3e
3 changed files with 10 additions and 1 deletions

View File

@@ -15,6 +15,10 @@ class Request(object):
tmp[key] = value
self.headers = frozenset(tmp.iteritems())
@property
def scheme(self):
return urlparse(self.uri).scheme
@property
def host(self):
return urlparse(self.uri).hostname