api: google.golang.org/api/transport/http Index | Files | Directories

package http

import "google.golang.org/api/transport/http"

Package http supports network connections to HTTP servers. This package is not intended for use by end developers. Use the google.golang.org/api/option package to configure API clients.

Index

Package Files

dial.go

func NewClient Uses

func NewClient(ctx context.Context, opts ...option.ClientOption) (*http.Client, string, error)

NewClient returns an HTTP client for use communicating with a Google cloud service, configured with the given ClientOptions. It also returns the endpoint for the service as specified in the options.

func NewTransport Uses

func NewTransport(ctx context.Context, base http.RoundTripper, opts ...option.ClientOption) (http.RoundTripper, error)

NewTransport creates an http.RoundTripper for use communicating with a Google cloud service, configured with the given ClientOptions. Its RoundTrip method delegates to base.

Directories

PathSynopsis
internal/propagationPackage propagation implements X-Cloud-Trace-Context header propagation used by Google Cloud products.

Package http imports 9 packages (graph) and is imported by 272 packages. Updated 2019-09-14. Refresh now. Tools for package owners.