Added /request/host to both, the spec and the poc.

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-06-12 07:35:15 +02:00
parent 804b4dcf8b
commit 77f2855471
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ class Connection:
return self.request.content
elif res.path == 'request/path':
return self.request.path.encode('utf-8')
elif res.path == 'request/host':
return self.request.host.encode('utf-8')
elif res.path.startswith('request/matches/'):
return self.request.match_info[nth(2)].encode('utf-8')
elif res.path.startswith('request/params/'):
+1
View File
@@ -405,6 +405,7 @@ following resource paths:
├─ request All information related to the HTTP request. Read-Only
│ ├──── method Used HTTP Method (GET, POST)
│ ├──── host Host part of the URL
│ ├──── path Complete URL path (URL-unquoted)
│ ├──── matches Previously matched URL path parts
│ │ └──── <name>