romeotools/http.py
Klaus-Uwe Mitterer b2660a7e03 Starting partial API documentation
Implement simple HTTP request object based on urllib
2021-01-01 21:25:41 +01:00

6 lines
No EOL
256 B
Python

from urllib.request import Request as UrllibRequest
class Request(UrllibRequest):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.headers["user-agent"] = "romeotools (https://kumig.it/kumitterer/romeotools)"