Documentation ¶
Index ¶
- Variables
- type Client
- type Server
- func (s *Server) Close() error
- func (s *Server) Route(r *http.Request) int
- func (s *Server) Run() error
- func (s *Server) ServeDaze(w http.ResponseWriter, r *http.Request)
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) ServeMask(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = struct { // Fake website, requests with incorrect signatures will be redirected to this address. Note that if you use the // baboon protocol, specify a local address whenever possible. For a cloud service provider, if it finds that you // are accessing an external address and sends the received data back to an in-wall connection, it may determine // that you are using a proxy server. Masker string }{ Masker: "https://www.zhihu.com", }
Conf is acting as package level configuration.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implemented the baboon protocol.
type Server ¶
Server implemented the baboon protocol.
func (*Server) ServeDaze ¶
func (s *Server) ServeDaze(w http.ResponseWriter, r *http.Request)
ServeDaze degenerate HTTP protocol and run ashe protocol on it.
Click to show internal directories.
Click to hide internal directories.