proxy

package
Version: v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package proxy provides transport and upgrade support for proxies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialURL added in v1.0.7

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 added in v1.0.7

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

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