remove port from ip

This commit is contained in:
Raphael Deem
2017-10-23 21:01:44 -07:00
parent 5bcbc5a337
commit c2191153cf
3 changed files with 35 additions and 4 deletions

View File

@@ -75,6 +75,10 @@ The following variables are accessible as properties on `Request` objects:
- `ip` (str) - IP address of the requester.
- `port` (str) - Port address of the requester.
- `socket` (tuple) - (IP, port) of the requester.
- `app` - a reference to the Sanic application object that is handling this request. This is useful when inside blueprints or other handlers in modules that do not have access to the global `app` object.
```python