type net/http.Client
75 uses
net/http (current package)
client.go#L57: type Client struct {
client.go#L109: var DefaultClient = &Client{}
client.go#L169: func (c *Client) send(req *Request, deadline time.Time) (resp *Response, didTimeout func() bool, err error) {
client.go#L187: func (c *Client) deadline() time.Time {
client.go#L194: func (c *Client) transport() RoundTripper {
client.go#L469: func (c *Client) Get(url string) (resp *Response, err error) {
client.go#L487: func (c *Client) checkRedirect(req *Request, via []*Request) error {
client.go#L584: func (c *Client) Do(req *Request) (*Response, error) {
client.go#L590: func (c *Client) do(req *Request) (retres *Response, reterr error) {
client.go#L743: func (c *Client) makeHeadersCopier(ireq *Request) func(*Request) {
client.go#L839: func (c *Client) Post(url, contentType string, body io.Reader) (resp *Response, err error) {
client.go#L876: func (c *Client) PostForm(url string, data url.Values) (resp *Response, err error) {
client.go#L904: func (c *Client) Head(url string) (resp *Response, err error) {
client.go#L919: func (c *Client) CloseIdleConnections() {
net/http/httptest
server.go#L57: client *http.Client
server.go#L128: s.client = &http.Client{Transport: &http.Transport{}}
server.go#L145: s.client = &http.Client{Transport: &http.Transport{}}
server.go#L300: func (s *Server) Client() *http.Client {
cloud.google.com/go/compute/metadata
metadata.go#L64: var defaultClient = &Client{hc: &http.Client{
metadata.go#L268: hc *http.Client
metadata.go#L274: func NewClient(c *http.Client) *Client {
cloud.google.com/go/storage
storage.go#L89: hc *http.Client
github.com/aws/aws-sdk-go/aws
config.go#L78: HTTPClient *http.Client
config.go#L330: func (c *Config) WithHTTPClient(client *http.Client) *Config {
github.com/aws/aws-sdk-go/aws/ec2metadata
service.go#L87: cfg.HTTPClient = &http.Client{
service.go#L163: func httpClientZero(c *http.Client) bool {
github.com/go-git/go-git/v5/plumbing/transport/http
common.go#L76: c *http.Client
common.go#L90: func NewClient(c *http.Client) transport.Transport {
common.go#L114: client *http.Client
common.go#L119: func newSession(c *http.Client, ep *transport.Endpoint, auth transport.AuthMethod) (*session, error) {
receive_pack.go#L22: func newReceivePackSession(c *http.Client, ep *transport.Endpoint, auth transport.AuthMethod) (transport.ReceivePackSession, error) {
upload_pack.go#L22: func newUploadPackSession(c *http.Client, ep *transport.Endpoint, auth transport.AuthMethod) (transport.UploadPackSession, error) {
golang.org/x/net/context/ctxhttp
ctxhttp.go#L23: func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
ctxhttp.go#L41: func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) {
ctxhttp.go#L50: func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) {
ctxhttp.go#L59: func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) {
ctxhttp.go#L69: func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) {
golang.org/x/oauth2
oauth2.go#L231: func (c *Config) Client(ctx context.Context, t *Token) *http.Client {
oauth2.go#L342: func NewClient(ctx context.Context, src TokenSource) *http.Client {
oauth2.go#L346: return &http.Client{
golang.org/x/oauth2/google
default.go#L42: func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) {
sdk.go#L128: func (c *SDKConfig) Client(ctx context.Context) *http.Client {
sdk.go#L129: return &http.Client{
golang.org/x/oauth2/internal
transport.go#L21: var appengineClientHook func(context.Context) *http.Client
transport.go#L23: func ContextClient(ctx context.Context) *http.Client {
transport.go#L25: if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok {
golang.org/x/oauth2/jwt
jwt.go#L90: func (c *Config) Client(ctx context.Context) *http.Client {
golang.org/x/pkgsite/cmd/prober
main.go#L167: client *http.Client
golang.org/x/pkgsite/internal/auth
auth.go#L28: func NewClient(ctx context.Context, jsonCreds []byte, useExp bool) (_ *http.Client, err error) {
golang.org/x/pkgsite/internal/index
index.go#L30: httpClient *http.Client
index.go#L45: return &Client{url: strings.TrimRight(rawurl, "/"), httpClient: &http.Client{Transport: &ochttp.Transport{}}}, nil
golang.org/x/pkgsite/internal/proxy
client.go#L36: httpClient *http.Client
client.go#L65: httpClient: &http.Client{Transport: &ochttp.Transport{}},
golang.org/x/pkgsite/internal/source
source.go#L211: httpClient *http.Client
source.go#L217: httpClient: &http.Client{
golang.org/x/pkgsite/internal/testing/testhelper
testhelper.go#L56: func SetupTestClientAndServer(handler http.Handler) (*http.Client, *httptest.Server, func()) {
testhelper.go#L59: cli := &http.Client{
google.golang.org/api/idtoken
cache.go#L19: client *http.Client
cache.go#L29: func newCachingClient(client *http.Client) *cachingClient {
idtoken.go#L32: func NewClient(ctx context.Context, audience string, opts ...ClientOption) (*http.Client, error) {
idtoken.go#L61: return &http.Client{Transport: t}, nil
idtoken.go#L174: func WithHTTPClient(client *http.Client) ClientOption {
google.golang.org/api/internal
settings.go#L33: HTTPClient *http.Client
google.golang.org/api/internal/gensupport
resumable.go#L46: Client *http.Client
send.go#L36: func SendRequest(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L64: func send(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L86: func SendRequestWithRetry(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
send.go#L114: func sendAndRetry(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) {
google.golang.org/api/option
option.go#L108: func WithHTTPClient(client *http.Client) ClientOption {
option.go#L112: type withHTTPClient struct{ client *http.Client }
google.golang.org/api/storage/v1
storage-gen.go#L134: func New(client *http.Client) (*Service, error) {
storage-gen.go#L151: client *http.Client
google.golang.org/api/transport
dial.go#L21: func NewHTTPClient(ctx context.Context, opts ...option.ClientOption) (*http.Client, string, error) {
google.golang.org/api/transport/http
dial.go#L39: func NewClient(ctx context.Context, opts ...option.ClientOption) (*http.Client, string, error) {
dial.go#L60: return &http.Client{Transport: trans}, endpoint, nil
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |