proxy

package
v0.0.0-...-83fc17c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package contains simple version of Reverse Proxy Server. It search string in response body and replace it to the given string

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHostNotHttpOrHttps = errors.New(`host must start with "http" or "https"`)
)

Functions

func NewReverseProxy

func NewReverseProxy(host, search, replace string) (http.Handler, error)

NewReverseProxy returns new reverse proxy handler that replaces text in response

Types

This section is empty.

Jump to

Keyboard shortcuts

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