package transport

import "k8s.io/kubernetes/Godeps/_workspace/src/google.golang.org/api/googleapi/transport"

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

Index

Types

type APIKey

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

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

Source Files

apikey.go

Version
v1.1.8
Published
Feb 23, 2016
Platform
linux/amd64
Imports
2 packages
Last checked
9 minutes ago

Tools for package owners.