WithStatic sets the mount and search paths for static assets.
(mount string, searchPaths ...string)
| 109 | |
| 110 | // WithStatic sets the mount and search paths for static assets. |
| 111 | func WithStatic(mount string, searchPaths ...string) Option { |
| 112 | return func(o *options) { |
| 113 | o.staticMount, o.staticSearchPaths = mount, searchPaths |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | // WithRedirectToHost redirects all requests to this host. |
| 118 | func WithRedirectToHost(target string) Option { |