proxy

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: LGPL-3.0 Imports: 5 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Introduction

This is a simple HTTP proxy library made with Go, taking the article https://medium.com/@mlowicki/http-s-proxy-in-golang-in-less-than-100-lines-of-code-6a51c2f2c38c as starting point.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoHijacking

func NoHijacking() (e error)

NoHijacking error

Types

type Proxy

type Proxy struct {
	Rt          h.RoundTripper
	DialContext func(context.Context, string, string) (net.Conn, error)
	AddCtxValue func(*h.Request) *h.Request
}

Proxy is an HTTP proxy

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(w h.ResponseWriter, r *h.Request)

Directories

Path Synopsis
cmd
proxy command

Jump to

Keyboard shortcuts

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