hijack

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HijackReadWriter

type HijackReadWriter struct {
	sync.Mutex

	Header   http.Header
	Response http.ResponseWriter
	Hijacked bool
	// contains filtered or unexported fields
}

HijackReadWriter is an io.Writer and io.ReadCloser implementation that will defer hijacking a connection until a read or write is attempted.

func (*HijackReadWriter) Close

func (rw *HijackReadWriter) Close()

func (*HijackReadWriter) Read

func (rw *HijackReadWriter) Read(b []byte) (int, error)

func (*HijackReadWriter) Write

func (rw *HijackReadWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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