diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-01-14 21:23:03 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-01-14 21:23:03 -0500 |
| commit | 0b8142eee1d0f0a85120f3e43a32a3cda850bf19 (patch) | |
| tree | 1562f6966a94ae9e942e1072e2fed3e7e7fbdf51 /protocol/http.py | |
| parent | 03c758af3eaebd6b7c18e1e595d49b0552eb5278 (diff) | |
| download | browset-0b8142eee1d0f0a85120f3e43a32a3cda850bf19.tar.gz | |
protocols: Support http/https
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) |
