...

Package transport

import "cmd/vendor/github.com/google/pprof/internal/transport"
Overview
Index

Overview ▾

Package transport provides a mechanism to send requests with https cert, key, and CA.

func New

func New(flagset plugin.FlagSet) http.RoundTripper

New returns a round tripper for making requests with the specified cert, key, and ca. The flags tls_cert, tls_key, and tls_ca are added to the flagset to allow a user to specify the cert, key, and ca. If the flagset is nil, no flags will be added, and users will not be able to use these flags.