httptun

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	HeadersOp packer.Channel = 1
	RequestOp packer.Channel = 8
	BodyOp    packer.Channel = 16
)

Variables

View Source
var (
	Magic   = packer.Magic{0x02, 0xfc}
	Version = packer.Version(0x01)
)
View Source
var (
	BodyStreamBufferSize = 4 * 1024

	ErrNotBody = errors.New("payload not an http body")
)

Functions

func Backend

func Backend(stream io.ReadWriter) (http.ResponseWriter, *http.Request, error)

Stream -> HTTP

func Frontend

func Frontend(w http.ResponseWriter, r *http.Request, stream io.ReadWriter) error

Note: make sure you call HTTP -> Stream

Types

This section is empty.

Jump to

Keyboard shortcuts

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