一键导入
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.