writer

package
v3.4.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearableBufferedResponse

type ClearableBufferedResponse interface {
	http.ResponseWriter
	Clear()
	Buffer() *bytes.Buffer
	Writer() http.ResponseWriter
	Finalize()
}

BufferedResponseWriter is a buffered response writer.

type ClearableBufferedResponseWriter

type ClearableBufferedResponseWriter struct {
	http.ResponseWriter
	Buf         *bytes.Buffer
	Code        int
	WroteHeader bool
}

ClearableBufferedResponseWriter is a buffered response writer that can be cleared.

func (*ClearableBufferedResponseWriter) Buffer

func (*ClearableBufferedResponseWriter) Clear

func (bw *ClearableBufferedResponseWriter) Clear()

func (*ClearableBufferedResponseWriter) Finalize

func (bw *ClearableBufferedResponseWriter) Finalize()

func (*ClearableBufferedResponseWriter) Hijack

func (*ClearableBufferedResponseWriter) Push

func (*ClearableBufferedResponseWriter) Write

func (bw *ClearableBufferedResponseWriter) Write(b []byte) (int, error)

func (*ClearableBufferedResponseWriter) WriteHeader

func (bw *ClearableBufferedResponseWriter) WriteHeader(code int)

func (*ClearableBufferedResponseWriter) Writer

Jump to

Keyboard shortcuts

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