httputil

package
v0.0.0-...-b3cd5a9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 4 Imported by: 1

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) 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