A developer-friendly HTTP request library for Go, inspired by Python-Requests.
Request is an HTTP request library for Go that provides a simple and intuitive API for making web requests. It abstracts the complexities of Go's standard net/http package, allowing developers to easily send GET, POST, and other HTTP requests with support for JSON, cookies, headers, files, and proxies. The library is designed to solve the problem of verbose and cumbersome HTTP client code in Go.
Go developers who need to interact with HTTP APIs or web services and want a cleaner, more Pythonic approach than the standard library offers.
Developers choose Request for its developer-friendly API inspired by Python-Requests, which significantly reduces boilerplate code and makes HTTP interactions more readable and maintainable compared to using Go's net/http directly.
A developer-friendly HTTP request library for Gopher.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Methods like Get() and Post() mimic Python-Requests, drastically reducing boilerplate and making HTTP calls more readable, as shown in the simple usage examples.
Easily send JSON, form data, files, and cookies through properties like req.Json and req.Files, simplifying complex payloads without manual serialization.
Includes proxy support, basic authentication, and custom headers via straightforward settings, eliminating the need for extra configuration code.
Works with standard http.Client and requires minimal setup, allowing developers to start making requests immediately after import.
Lacks features like automatic retries, circuit breakers, or timeout management beyond the base http.Client, making it less suitable for resilient systems.
Requires explicit closing of response bodies (e.g., defer resp.Body.Close()), which is error-prone and can lead to resource leaks if overlooked.
Inspired by Python-Requests, which is no longer actively maintained, and the Go ecosystem has newer alternatives with more comprehensive feature sets.