From 1ec44ab11b0258732ff67bb37e563dacc9663933 Mon Sep 17 00:00:00 2001 From: aki-0421 <118268728+aki-0421@users.noreply.github.com> Date: Tue, 11 Apr 2023 21:39:49 +0900 Subject: [PATCH] F: restore Do func --- cloudflare/fetch/http.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cloudflare/fetch/http.go diff --git a/cloudflare/fetch/http.go b/cloudflare/fetch/http.go new file mode 100644 index 0000000..7e85ace --- /dev/null +++ b/cloudflare/fetch/http.go @@ -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) +}