requests icon indicating copy to clipboard operation
requests copied to clipboard

docs: improve GET request example with custom headers explanation

Open Nikita20010 opened this issue 2 months ago • 2 comments

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)

Nikita20010 avatar Oct 28 '25 14:10 Nikita20010

This is already documented

sigmavirus24 avatar Oct 28 '25 23:10 sigmavirus24

Incorrect. Timeouts are also already in the documentation

sigmavirus24 avatar Oct 29 '25 10:10 sigmavirus24