RewriteProxy

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RewriteProxyHandlerType

type RewriteProxyHandlerType struct {
	Next        http.Handler //
	Paths       []string     //
	MatchRE     []string     // regular expression
	ReplaceRE   []string     // replacement string, with ${1} pattern replacements in it
	AddGETParam string       // Additional Parmas to add to Request
	Dest        string       //

	LineNo int //
	// contains filtered or unexported fields
}

func NewRewriteProxyServer

func NewRewriteProxyServer(n http.Handler, p, h, v []string, d string) *RewriteProxyHandlerType

func (*RewriteProxyHandlerType) InitializeWithConfigData

func (hdlr *RewriteProxyHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*RewriteProxyHandlerType) PreValidate

func (hdlr *RewriteProxyHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (RewriteProxyHandlerType) ServeHTTP

func (hdlr RewriteProxyHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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