Broken project to implement a cross-protocol browser in textual
Diffstat (limited to 'protocol/http.py')
| -rw-r--r-- | protocol/http.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocol/http.py b/protocol/http.py new file mode 100644 index 0000000..2f9672c --- /dev/null +++ b/protocol/http.py @@ -0,0 +1,5 @@ +import requests +class HttpProtocol(): + def get(url): + r = requests.get(url) + return (r.headers['content-type'].split(';')[0], r) |