Documentation
¶
Index ¶
- type Options
- type ProxyRendertronClient
- type Rendertron
- func (Rendertron) CaddyModule() caddy.ModuleInfo
- func (c *Rendertron) Provision(ctx caddy.Context) error
- func (c *Rendertron) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (c *Rendertron) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (c *Rendertron) Validate() error
- type RendertronClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyRendertronClient ¶
type ProxyRendertronClient struct {
// contains filtered or unexported fields
}
func NewProxyRendertronClient ¶
func NewProxyRendertronClient(proxy string) *ProxyRendertronClient
type Rendertron ¶
type Rendertron struct {
ExcludeUrlPattern string `json:"excludeUrlPattern,omitempty"`
UserAgentPattern string `json:"userAgentPattern,omitempty"`
Timeout caddy.Duration `json:"timeout,omitempty"`
Proxy string `json:"proxy"`
AllowedForwadedHosts []string `json:"allowedForwadedHosts,omitempty"`
ForwardedHostHeader string `json:"forwardedHostHeader,omitempty"`
// contains filtered or unexported fields
}
func (Rendertron) CaddyModule ¶
func (Rendertron) CaddyModule() caddy.ModuleInfo
func (*Rendertron) ServeHTTP ¶
func (c *Rendertron) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
func (*Rendertron) UnmarshalCaddyfile ¶
func (c *Rendertron) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
rendertron [<matcher>] <url> {
excludeUrlPattern <pattern>
userAgentPattern <pattern>
timeout <timeout>
proxy <url>
allowedForwadedHosts <text...>
forwardedHostHeader <text=X-Forwarded-Host>
}
func (*Rendertron) Validate ¶
func (c *Rendertron) Validate() error
Click to show internal directories.
Click to hide internal directories.