mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
F: restore Do func
This commit is contained in:
parent
3f7d0e77f2
commit
1ec44ab11b
10
cloudflare/fetch/http.go
Normal file
10
cloudflare/fetch/http.go
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package fetch
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Do sends an HTTP request and returns an HTTP response
|
||||||
|
func (c *Client) Do(req *Request) (*http.Response, error) {
|
||||||
|
return fetch(c.namespace, req.Request)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user