package transport

import "k8s.io/kubernetes/Godeps/_workspace/src/code.google.com/p/google-api-go-client/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
v0.7.3
Published
Jan 8, 2015
Platform
linux/amd64
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.