resps

package
v1.23.0-cx Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, code int, err error)

func ErrorMessage

func ErrorMessage(w http.ResponseWriter, code int, msg string)

func OK

func OK(w http.ResponseWriter, body []byte)

Types

type FakeResponseWriter

type FakeResponseWriter struct {
	// contains filtered or unexported fields
}

func (FakeResponseWriter) Header

func (f FakeResponseWriter) Header() http.Header

func (*FakeResponseWriter) Write

func (f *FakeResponseWriter) Write(payload []byte) (int, error)

func (*FakeResponseWriter) WriteHeader

func (f *FakeResponseWriter) WriteHeader(code int)

Jump to

Keyboard shortcuts

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