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

Added port to Request with matcher and test

This commit is contained in:
Max Shytikov
2014-04-07 01:12:05 +02:00
parent 18ec57fa73
commit bd9fa773e8
3 changed files with 9 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ class Request(object):
def host(self):
return urlparse(self.uri).hostname
@property
def port(self):
return urlparse(self.uri).port
@property
def url(self):
return self.uri