summaryrefslogtreecommitdiffstats
path: root/http/client/http.go
blob: 85bd04b34a4978a011531dddb8a8d25852eac501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")
}