Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
Note: Register Dies for pipeline before calling ListenAndServe.
Example of YAML:
port: 8080 target: http://httpbin.org pipes: # pipe definitions
main: # pipe id request: # request pipeline - dump: # name of plugin dumpBody: true # plugin-specific configuration response: # response pipeline - dump: # name of plugin dumpBody: true # plugin-specific configuration
proxies: # maps host & path -> pipe
- host: localhost # host path: / # path pipe: main # pipe to use
Types ¶
type ReverseProxyHandler ¶
type ReverseProxyHandler struct { Definition pipeline.Definition Target *url.URL }
func (*ReverseProxyHandler) ServeHTTP ¶
func (self *ReverseProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.