diff options
author | siddharth <s@ricketyspace.net> | 2022-04-24 00:05:25 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2022-04-24 00:05:25 -0400 |
commit | 6c777e540a9c15eea62407aa878be855a2e8e6e4 (patch) | |
tree | 4baca2fc2796f1cf60da92894a3004fae24a2ba7 /http/client/http.go | |
parent | 8695bc627863c0e5faa73ff8f43435c6e735f6ae (diff) |
http/client: flesh out Get
Diffstat (limited to 'http/client/http.go')
-rw-r--r-- | http/client/http.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/http/client/http.go b/http/client/http.go deleted file mode 100644 index 85bd04b..0000000 --- a/http/client/http.go +++ /dev/null @@ -1,20 +0,0 @@ -// 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") -} |