mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -13,13 +13,12 @@
|
|||||||
<img src="https://img.shields.io/badge/language-golang-brightgreen">
|
<img src="https://img.shields.io/badge/language-golang-brightgreen">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<center>
|
<p align="center">
|
||||||
|
|
||||||
## A request library designed specifically for web crawlers
|
## A request library designed specifically for web crawlers
|
||||||
|
</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, utls, uquic
|
||||||
|
|
||||||
## 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
|
## Innovative Features
|
||||||
|
|
||||||
@@ -29,7 +28,7 @@
|
|||||||
| HTTP/3 fingerprint spoofing protection | Not supported |
|
| HTTP/3 fingerprint spoofing protection | Not supported |
|
||||||
| Arbitrary closure of underlying connections | Not supported |
|
| Arbitrary closure of underlying connections | Not supported |
|
||||||
| Genuine request-level proxy settings | Not supported |
|
| Genuine request-level proxy settings | Not supported |
|
||||||
| Unique transport layer management mechanism, fully unifying HTTP/1, HTTP/2, HTTP/3, WebSocket, and SSE protocol handling | Not supported |
|
| Unique transport layer management mechanism, fully unifying HTTP/1, HTTP/2, HTTP/3, WebSocket, SSE, UTLS, QUIC protocol handling | Not supported |
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* [Simple for settings and Request](https://github.com/gospider007/requests#quickly-send-requests)
|
* [Simple for settings and Request](https://github.com/gospider007/requests#quickly-send-requests)
|
||||||
|
|||||||
@@ -146,6 +146,11 @@ func (obj *Client) Request(ctx context.Context, method string, href string, opti
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for ; optionBak.MaxRetries >= 0; optionBak.MaxRetries-- {
|
for ; optionBak.MaxRetries >= 0; optionBak.MaxRetries-- {
|
||||||
|
select {
|
||||||
|
case <-ctx.Done():
|
||||||
|
return nil, ctx.Err()
|
||||||
|
default:
|
||||||
|
}
|
||||||
option := optionBak
|
option := optionBak
|
||||||
option.Url = cloneUrl(uhref)
|
option.Url = cloneUrl(uhref)
|
||||||
response = NewResponse(ctx, option)
|
response = NewResponse(ctx, option)
|
||||||
|
|||||||
Reference in New Issue
Block a user