http

package
Version: v0.10.1-0...-16c3d6f Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

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.

Types

This section is empty.

Source Files

Directories

Path Synopsis
internal
propagation
Package propagation implements X-Cloud-Trace-Context header propagation used by Google Cloud products.
Package propagation implements X-Cloud-Trace-Context header propagation used by Google Cloud products.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL