Versions in this module Expand all Collapse all v0 v0.8.698 Aug 29, 2017 Changes in this version + func GetHttpRequestInfo(c frpNet.Conn) (_ frpNet.Conn, _ map[string]string, err error) + func GetHttpsHostname(c frpNet.Conn) (sc frpNet.Conn, _ map[string]string, err error) + func HttpAuthFunc(c frpNet.Conn, userName, passWord, authorization string) (bAccess bool, err error) + func HttpHostNameRewrite(c frpNet.Conn, rewriteHost string) (_ frpNet.Conn, err error) + type ByLocation []*VhostRouter + func (a ByLocation) Len() int + func (a ByLocation) Less(i, j int) bool + func (a ByLocation) Swap(i, j int) + type HttpMuxer struct + func NewHttpMuxer(listener frpNet.Listener, timeout time.Duration) (*HttpMuxer, error) + type HttpsMuxer struct + func NewHttpsMuxer(listener frpNet.Listener, timeout time.Duration) (*HttpsMuxer, error) + type Listener struct + func (l *Listener) Accept() (frpNet.Conn, error) + func (l *Listener) Close() error + func (l *Listener) Name() string + type VhostMuxer struct + func NewVhostMuxer(listener frpNet.Listener, vhostFunc muxFunc, authFunc httpAuthFunc, ...) (mux *VhostMuxer, err error) + func (v *VhostMuxer) Listen(cfg *VhostRouteConfig) (l *Listener, err error) + type VhostRouteConfig struct + Domain string + Location string + Password string + RewriteHost string + Username string + type VhostRouter struct + type VhostRouters struct + RouterByDomain map[string][]*VhostRouter + func NewVhostRouters() *VhostRouters + func (r *VhostRouters) Add(domain, location string, l *Listener) + func (r *VhostRouters) Del(domain, location string) + func (r *VhostRouters) Exist(host, path string) (vr *VhostRouter, exist bool) + func (r *VhostRouters) Get(host, path string) (vr *VhostRouter, exist bool)