Add yggdrasil.Client()

This commit is contained in:
Sunbread
2020-01-04 23:21:43 +08:00
parent 05b7a48f87
commit 50d65e579f

View File

@ -64,3 +64,9 @@ func rawPost(endpoint string, payload interface{}) (*http.Response, error) {
// Do // Do
return client.Do(PostRequest) return client.Do(PostRequest)
} }
// Client return the HTTP client for Yggdrasil.
// Only used when you want to modify settings of the HTTP client.
func Client() *http.Client {
return &client
}