api: google.golang.org/api/googleapi/transport Index | Files

package transport

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

Package transport contains HTTP transports used to make authenticated API requests.

Index

Package Files

apikey.go

type APIKey Uses

type APIKey struct {
    // Key is the API Key to set on requests.
    Key string

    // Transport is the underlying HTTP transport.
    // If nil, http.DefaultTransport is used.
    Transport http.RoundTripper
}

APIKey is an HTTP Transport which wraps an underlying transport and appends an API Key "key" parameter to the URL of outgoing requests.

func (*APIKey) RoundTrip Uses

func (t *APIKey) RoundTrip(req *http.Request) (*http.Response, error)

Package transport imports 2 packages (graph) and is imported by 38 packages. Updated 2019-09-14. Refresh now. Tools for package owners.