Skip to content

Commit feb620c

Browse files
committed
private > public struct
1 parent 0e81352 commit feb620c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

httpclient/http.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ import (
66
"time"
77
)
88

9-
type prodClient struct {
9+
type ProdClient struct {
1010
*http.Client
1111
}
1212

13-
func (c *prodClient) SetCookieJar(jar http.CookieJar) {
13+
func (c *ProdClient) SetCookieJar(jar http.CookieJar) {
1414
c.Jar = jar
1515
}
1616

17-
func (c *prodClient) SetCookies(url *url.URL, cookies []*http.Cookie) {
17+
func (c *ProdClient) SetCookies(url *url.URL, cookies []*http.Cookie) {
1818
c.Jar.SetCookies(url, cookies)
1919
}
2020

21-
func (c *prodClient) SetCustomTimeout(timeout time.Duration) {
21+
func (c *ProdClient) SetCustomTimeout(timeout time.Duration) {
2222
c.Timeout = timeout
2323
}
2424

25-
func (c *prodClient) Cookies(url *url.URL) []*http.Cookie {
25+
func (c *ProdClient) Cookies(url *url.URL) []*http.Cookie {
2626
return c.Jar.Cookies(url)
2727
}
2828

29-
func (c *prodClient) SetRedirectPolicy(policy *func(req *http.Request, via []*http.Request) error) {
29+
func (c *ProdClient) SetRedirectPolicy(policy *func(req *http.Request, via []*http.Request) error) {
3030
c.CheckRedirect = *policy
3131
}
3232

0 commit comments

Comments
 (0)