writer

package
v0.0.0-...-64e5d5b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBodySize = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	gin.ResponseWriter
	// contains filtered or unexported fields
}

func GinContextUseNewWriter

func GinContextUseNewWriter(c *gin.Context) *Writer

func NewWriter

func NewWriter(writer gin.ResponseWriter) *Writer

func (*Writer) BindGinContext

func (w *Writer) BindGinContext(c *gin.Context)

func (*Writer) Pusher

func (w *Writer) Pusher() http.Pusher

func (*Writer) Reset

func (w *Writer) Reset() error

func (*Writer) Size

func (w *Writer) Size() int

func (*Writer) Status

func (w *Writer) Status() int

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

func (*Writer) WriteHeaderNow

func (w *Writer) WriteHeaderNow()

func (*Writer) WriteString

func (w *Writer) WriteString(s string) (int, error)

func (*Writer) WriteToHttp

func (w *Writer) WriteToHttp() (int, error)

func (*Writer) Written

func (w *Writer) Written() bool

Jump to

Keyboard shortcuts

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