warpfront

package
v0.22.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

README

Warpfront: unbelievably fast domain-fronting transport

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(client *http.Client, frontHost string, realHost string) (net.Conn, error)

Connect returns a warpfront session connected to the given front and real host. The front must contain a protocol scheme (http:// or https://).

Types

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Server wraps around the packet server

func NewServer

func NewServer() *Server

NewServer creates a http.Handler for warpfront.

func (*Server) Accept

func (srv *Server) Accept() (net.Conn, error)

Accept accepts a warpfront session.

func (*Server) Close

func (srv *Server) Close() error

Close destroys the warpfront context.

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(wr http.ResponseWriter, rq *http.Request)

ServeHTTP implements the basic stuff for ppServ

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL