internal

package
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2016 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package internal provides support for the cloud packages.

Users should not import this package directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UATransport

type UATransport struct {
	// Base represents the actual http.RoundTripper
	// the requests will be delegated to.
	Base http.RoundTripper
}

UATransport is an http.RoundTripper that appends Google Cloud client's user-agent to the original request's user-agent header.

func (*UATransport) RoundTrip

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

RoundTrip appends a user-agent to the existing user-agent header and delegates the request to the base http.RoundTripper.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL