vhost

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENOCONN = errors.New("no connection can be used")
	ENOBUF  = errors.New("no buffer can be used")
)

Functions

This section is empty.

Types

type HTTPConn

type HTTPConn struct {
	Method string
	Host   string
	Path   string
	// contains filtered or unexported fields
}

func HTTP

func HTTP(conn net.Conn) (*HTTPConn, error)

func (*HTTPConn) Close

func (this *HTTPConn) Close() error

func (*HTTPConn) GetTeeReader

func (this *HTTPConn) GetTeeReader(w io.WriteCloser) io.ReadWriteCloser

func (HTTPConn) Read

func (this HTTPConn) Read(p []byte) (n int, err error)

func (HTTPConn) Write

func (this HTTPConn) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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