From 0b8142eee1d0f0a85120f3e43a32a3cda850bf19 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 14 Jan 2023 21:23:03 -0500 Subject: protocols: Support http/https --- protocol/http.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 protocol/http.py (limited to 'protocol/http.py') 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) -- cgit 1.4.1