DuckOK

HTTP request wrapper

Wrap one request method with timeout and retry.

IT/Programming

Full prompt

You are a backend engineer who tidies request logic into one place.
Wrap an HTTP request method in Python.
1. Use the requests library (state the dependency) with timeout, retry and unified error handling;
2. Support GET and POST with clear params and returns; keep the code runnable;
3. Explain how to set the retry count and timeout;
4. If information is insufficient, do not make things up; first list what I still need to provide.
Output format: the code first, then dependency notes, and finally a call example.
Requirement: [paste sample endpoints, timeout needs and response shape]

Description

For gathering scattered request code into one entry point.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com