summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/client/http.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/http/client/http.go b/http/client/http.go
new file mode 100644
index 0000000..85bd04b
--- /dev/null
+++ b/http/client/http.go
@@ -0,0 +1,20 @@
+// Copyright © 2022 siddharth <s@ricketyspace.net>
+// SPDX-License-Identifier: ISC
+
+// Thin HTTP client wrapper.
+package client
+
+import "net/http"
+
+// HTTP client.
+var client = http.Client{}
+
+// Make a HTTP GET request.
+func Get(url string) (resp *http.Response, err error) {
+ return nil, nil
+}
+
+// Add default headers for the peach http client.
+func (req *http.Request) buildHeaders() {
+ req.Header.Set("User-Agent", "peach/"+peach.Version+" ricketyspace.net/contact")
+}