go-resty/resty ? reverse-engineered prompt
Reverse engineered prompt
Build me a Go HTTP client library that makes it really easy to call REST APIs and SSE endpoints without a lot of boilerplate.
I want a clean, friendly API for sending requests, setting headers, query params, JSON or form bodies, multipart uploads, and reading responses. It should support things people actually need in real apps, like retries with backoff, redirects, timeouts, request and response middleware, rate limiting, circuit breaking, load balancing, and basic digest auth. Also include helpers for streaming and Server Sent Events, plus a way to print or generate curl style output for debugging.
Make it feel polished and production ready, with good defaults, sensible errors, and tests for the main behaviors. If you need to check current Go docs or best practices while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit