mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
11
README.md
11
README.md
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user