From 77f2855471112e44727d5c35f2c00cd09e68961c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Wed, 12 Jun 2019 07:35:15 +0200 Subject: [PATCH] Added /request/host to both, the spec and the poc. --- poc/bin/kapow | 2 ++ spec/README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/poc/bin/kapow b/poc/bin/kapow index d8adce3..621fd9d 100755 --- a/poc/bin/kapow +++ b/poc/bin/kapow @@ -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/'): diff --git a/spec/README.md b/spec/README.md index 8cfc26d..7604e6d 100644 --- a/spec/README.md +++ b/spec/README.md @@ -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 │ │ └────