بنقرة واحدة
requests
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Best practices for building CLI applications with Click including commands, groups, options, and testing.
Best practices for Django web development including models, views, templates, and testing.
Best practices for Flask web development including routing, blueprints, and testing.
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
Best practices for numerical computing with NumPy including arrays, broadcasting, and vectorization.
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
| name | requests |
| description | Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts. |
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
Apply this skill when making HTTP requests with the Requests library — sessions, auth, error handling, retries, and file uploads.
requests.Session() for connection pooling and persistent headers/cookies across multiple requests.session.headers for default auth tokens and user-agent strings.session.mount() with HTTPAdapter for retry logic.response.raise_for_status() to surface HTTP errors as exceptions.timeout=(connect_timeout, read_timeout) — never use infinite timeouts.requests.ConnectionError, requests.Timeout, and requests.HTTPError explicitly.urllib3.util.Retry with HTTPAdapter for automatic retries with backoff.verify=False) in production.auth= parameter for HTTP auth rather than manually setting headers.requests.get() for high-throughput — use sessions.stream=True) to release connections.