Documentation ¶
Index ¶
- Constants
- func ListenHTTPWithProxy(proxyServer Proxy, options Options, errorCh *chan error)
- func NewProxyHandler(toUrl url.URL) *httputil.ReverseProxy
- func RootCommand(errorCh *chan error) *cobra.Command
- func RunRoot(errorCh *chan error)
- func ServeCommand(proxyServer Proxy, errorCh *chan error) *cobra.Command
- func SetContentSecurityPolicyHeader(response *http.Response)
- func SetReferrerPolicyHeader(response *http.Response)
- func SetXContentTypeOptionsHeader(response *http.Response)
- type Options
- type Proxy
- type ServerProxy
- type TestProxy
- type TransportLogger
Constants ¶
View Source
const ContentSecurityPolicy = "Content-Security-Policy"
View Source
const ReferrerPolicy = "Referrer-Policy"
View Source
const XContentTypeOptions = "X-Content-Type-Options"
Variables ¶
This section is empty.
Functions ¶
func ListenHTTPWithProxy ¶
func NewProxyHandler ¶
func NewProxyHandler(toUrl url.URL) *httputil.ReverseProxy
func RootCommand ¶
func SetReferrerPolicyHeader ¶
Types ¶
type ServerProxy ¶
type ServerProxy struct { }
func (*ServerProxy) ListenAndServe ¶
func (s *ServerProxy) ListenAndServe(addr string, handler http.HandlerFunc) error
type TestProxy ¶
type TestProxy struct { Addr string Handler http.HandlerFunc }
func (*TestProxy) ListenAndServe ¶
func (t *TestProxy) ListenAndServe(addr string, handler http.HandlerFunc) error
type TransportLogger ¶
type TransportLogger struct{}
Click to show internal directories.
Click to hide internal directories.