This commit is contained in:
gospider
2025-01-19 21:36:15 +08:00
parent 80bf1af6d3
commit 268e90152a
2 changed files with 8 additions and 5 deletions

View File

@@ -13,8 +13,13 @@
<img src="https://img.shields.io/badge/language-golang-brightgreen">
</a>
</p>
<center>
Requests is a fully featured HTTP client library for Golang. Network requests can be completed with just a few lines of code. Unified support for http1, http2, http3, websocket, sse protocols
## A request library designed specifically for web crawlers
</center>
## Requests is a fully featured HTTP client library for Golang. Network requests can be completed with just a few lines of code. Unified support for http1, http2, http3, websocket, sse protocols
---
## Innovative Features
@@ -65,11 +70,9 @@ Requests is a fully featured HTTP client library for Golang. Network requests ca
* [Chain Proxy](https://github.com/gospider007/requests/blob/master/test/proxy/chain_proxy_test.go)
* [Logger](https://github.com/gospider007/requests/blob/master/test/logger/logger_test.go)
* [Well tested client library](https://github.com/gospider007/requests/tree/master/test)
## [Benchmark](https://github.com/gospider007/benchmark)
[gospider007/requests](https://github.com/gospider007/requests) > [imroc/req](github.com/imroc/req) > [go-resty](github.com/go-resty/resty) > [wangluozhe/requests](github.com/wangluozhe/requests) > [curl_cffi](https://github.com/yifeikong/curl_cffi) > [httpx](https://github.com/encode/httpx) > [psf/requests](https://github.com/psf/requests)
## Supported Go Versions
Recommended to use `go1.21.3` and above.
Recommended to use `go1.23.0` and above.
Initially Requests started supporting `go modules`
## Installation

View File

@@ -155,7 +155,7 @@ func (obj *Client) Request(ctx context.Context, method string, href string, opti
if err == nil || errors.Is(err, errFatal) || option.once {
return
}
optionBak.MaxRetries = option.MaxRedirect
optionBak.MaxRetries = option.MaxRetries
}
return
}