Versions in this module Expand all Collapse all v0 v0.0.1 Aug 1, 2019 Changes in this version + const AppName + const DefaultConfigFilePath + const ProxyTypeDummy + const ProxyTypeFCGI + const ProxyTypeHTTP + const VersionNo + func BackendFetch(req *http.Request, config *Config) (*http.Response, error) + func GetFCGIEnvVars(req *http.Request, config *Config) map[string]string + func GetListener(config *Config) (net.Listener, error) + func HTTPResponseFromBytes(b []byte) (*http.Response, error) + func HTTPResponseToBytes(r *http.Response) ([]byte, error) + func HandleRequest(req *http.Request, config *Config, exts *[]Extension) (*http.Response, error) + func RenderErrorPage(w http.ResponseWriter, r *http.Request, err error) + func UnloadExtensions(exts *[]Extension) + type Config struct + Backend string + Extensions struct{ ... } + Listen string + ProxyType string + func GetDefaultConfig() Config + func LoadConfigFile(configFilePath string) Config + type Extension struct + Name string + OnRequest func(req *http.Request) (*http.Response, error) + OnResponse func(resp *http.Response) (*http.Response, error) + OnUnload func() + func LoadExtensions(config *Config, ...) ([]Extension, error)