requests
requests copied to clipboard
docs: improve GET request example with custom headers explanation
Summary
Improved the docs/user/quickstart.rst file by adding a clear example showing how to send custom headers with the requests.get() method.
Why
This enhances the documentation by demonstrating a common real-world use case — sending custom headers in HTTP GET requests.
Example Added
>>> import requests
>>> headers = {'User-Agent': 'CustomClient/1.0'}
>>> r = requests.get('https://api.github.com/events', headers=headers)
This is already documented
Incorrect. Timeouts are also already in the documentation