summary refs log tree commit diff
path: root/protocol
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-01-14 21:23:03 -0500
committerZach DeCook <zachdecook@librem.one>2023-01-14 21:23:03 -0500
commit0b8142eee1d0f0a85120f3e43a32a3cda850bf19 (patch)
tree1562f6966a94ae9e942e1072e2fed3e7e7fbdf51 /protocol
parent03c758af3eaebd6b7c18e1e595d49b0552eb5278 (diff)
downloadbrowset-0b8142eee1d0f0a85120f3e43a32a3cda850bf19.tar.gz
protocols: Support http/https
Diffstat (limited to 'protocol')
-rw-r--r--protocol/http.py5
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)