Documentation ¶
Index ¶
Constants ¶
View Source
const ContextSecure = "secure"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackFn ¶
CallbackFn provides a callback function for logging request data.
type Config ¶
type Config struct { // Addr provides the remote address to use for proxying requests to. Addr string // Mountpoints provides a list of static mountpoints for this proxy. Mountpoints []*Mountpoint }
Config provides the configuration for a proxy instance.
type Mountpoint ¶
Mountpoint represents a static path and directory on-disk.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy acts as a reverse proxy and static file server for a specific site.
func (*Proxy) SetCallback ¶
func (p *Proxy) SetCallback(callbackFn CallbackFn)
SetCallback specifies a callback for requests & responses.
Click to show internal directories.
Click to hide internal directories.