Documentation ¶
Index ¶
- func NewBodyReplacer(oldnew []string) *bytereplacer.Replacer
- func NewHeaderReplacer(oldnew []string) *strings.Replacer
- func NewHeaderRequestReplacer(oldnew []string) *strings.Replacer
- func NewProxy(u *url.URL) *httputil.ReverseProxy
- func ResetReplacers()
- func UpdateResponse(r *http.Response) error
- type Application
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBodyReplacer ¶
func NewBodyReplacer(oldnew []string) *bytereplacer.Replacer
NewBodyReplacer return a body singleton replacer.
func NewHeaderReplacer ¶
NewHeaderReplacer return a body singleton replacer.
func NewHeaderRequestReplacer ¶
NewHeaderRequestReplacer return a body singleton replacer.
func NewProxy ¶
func NewProxy(u *url.URL) *httputil.ReverseProxy
NewProxy returns a configured httputil.ReverseProxy
func UpdateResponse ¶
UpdateResponse replaces the body pf a request with a modifyed one, golang cannot modify inplace the body.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is the application object that runs HTTP server.
func New ¶
func New(config *config.Conf) (*Application, error)
New is the constructor for Application struct.
func (*Application) MiddlewareStruct ¶
func (app *Application) MiddlewareStruct() (*interpose.Middleware, error)
MiddlewareStruct helps embed stuff into the real handlers.
Click to show internal directories.
Click to hide internal directories.