httpreply

package
v0.4.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Created

func Created(w http.ResponseWriter) (int, error)

func Error

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

func JSON

func JSON(w http.ResponseWriter, str []byte) (int, error)

func JSONCode

func JSONCode(w http.ResponseWriter, str []byte, code int) (int, error)

func NoContent

func NoContent(w http.ResponseWriter) (int, error)

func OK

func OK(w http.ResponseWriter) (int, error)

func Object

func Object(w http.ResponseWriter, obj any) (int, error)

func ObjectCode

func ObjectCode(w http.ResponseWriter, obj any, code int) (int, error)

func Reply

func Reply(w http.ResponseWriter, code int, contentType string, content []byte) (int, error)

func String

func String(w http.ResponseWriter, str string) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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