kubernetesk8s.io/kubernetes/pkg/util/proxy Index | Files

package proxy

import "k8s.io/kubernetes/pkg/util/proxy"

Package proxy provides transport and upgrade support for proxies

Index

Functions

func DialURL

func DialURL(url *url.URL, transport http.RoundTripper) (net.Conn, error)

Types

type Transport

type Transport struct {
	Scheme      string
	Host        string
	PathPrepend string

	http.RoundTripper
}

Transport is a transport for text/html content that replaces URLs in html content with the prefix of the proxy server

func (*Transport) RoundTrip

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

RoundTrip implements the http.RoundTripper interface

func (*Transport) WrappedRoundTripper

func (rt *Transport) WrappedRoundTripper() http.RoundTripper

Source Files

dial.go doc.go transport.go

Version
v1.1.4-beta.0
Published
Dec 7, 2015
Platform
linux/amd64
Imports
17 packages
Last checked
1 minute ago

Tools for package owners.