httputil

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(w http.ResponseWriter, statusCode int, msg string, args ...interface{})

Errorf sets the response status code and write formats the provided message as the response body

Types

type HttpWriteInterceptor

type HttpWriteInterceptor struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func NewHttpWriteInterceptor

func NewHttpWriteInterceptor(w http.ResponseWriter) *HttpWriteInterceptor

func (*HttpWriteInterceptor) BytesWritten

func (c *HttpWriteInterceptor) BytesWritten() int64

func (*HttpWriteInterceptor) CloseNotify

func (c *HttpWriteInterceptor) CloseNotify() <-chan bool

func (*HttpWriteInterceptor) Flush

func (c *HttpWriteInterceptor) Flush()

func (*HttpWriteInterceptor) Header

func (c *HttpWriteInterceptor) Header() http.Header

func (*HttpWriteInterceptor) Hijack

func (*HttpWriteInterceptor) Status

func (c *HttpWriteInterceptor) Status() int

func (*HttpWriteInterceptor) Write

func (c *HttpWriteInterceptor) Write(data []byte) (int, error)

func (*HttpWriteInterceptor) WriteHeader

func (c *HttpWriteInterceptor) WriteHeader(code int)

Jump to

Keyboard shortcuts

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