Documentation ¶ Index ¶ Variables func Handler(ctx context.Context, request *fakehttp.Request, conf *ConfigVar) type Config func DefaultConfig() *Config type ConfigVar func CompileConf(conf *Config) *ConfigVar type Header type HeaderVar type Proxy func NewHttp(conf *ConfigVar) Proxy Constants ¶ This section is empty. Variables ¶ View Source var Creator func(conf *ConfigVar) Proxy = NewHttp Functions ¶ func Handler ¶ func Handler(ctx context.Context, request *fakehttp.Request, conf *ConfigVar) Types ¶ type Config ¶ type Config struct { Url string Headers []*Header } func DefaultConfig ¶ func DefaultConfig() *Config type ConfigVar ¶ type ConfigVar struct { Url *vari.Var Headers []*HeaderVar } func CompileConf ¶ func CompileConf(conf *Config) *ConfigVar type Header ¶ type Header struct { Key string Value string } type HeaderVar ¶ type HeaderVar struct { Key string Value *vari.Var } type Proxy ¶ type Proxy interface { Do(ctx context.Context, request *fakehttp.Request) *fakehttp.Response } func NewHttp ¶ added in v0.1.2 func NewHttp(conf *ConfigVar) Proxy Source Files ¶ View all Source files config.go fastcgi.go handler.go http.go proxy.go Click to show internal directories. Click to hide internal directories.