stream

package
v0.0.0-...-9600303 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPathPrefixHTMLStreamer

func NewPathPrefixHTMLStreamer(hostname, hostPath, targetPath string, r io.ReadCloser) io.ReadCloser

Types

type HTMLStreamer

type HTMLStreamer struct {
	R           io.ReadCloser
	ModifyToken func(*html.Token)
	// contains filtered or unexported fields
}

func (*HTMLStreamer) Close

func (h *HTMLStreamer) Close() error

Close implements io.Closer

func (*HTMLStreamer) Read

func (h *HTMLStreamer) Read(p []byte) (n int, err error)

Read implements io.Reader

type ResponseWriterCloser

type ResponseWriterCloser interface {
	http.ResponseWriter
	io.Closer
}

ResponseWriterCloser is a closeable http.ResponseWriter

func NewPathPrefixHTMLResponseWriter

func NewPathPrefixHTMLResponseWriter(hostname, hostPath, targetPath string, w http.ResponseWriter) ResponseWriterCloser

Jump to

Keyboard shortcuts

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