httputil

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteError

func WriteError(w http.ResponseWriter, statusCode int, err error)

WriteError writes an error in JSON format to the ResponseWriter

func WriteResponse

func WriteResponse(w http.ResponseWriter, data interface{})

WriteResponse writes a standard HTTP response to the ResponseWriter in JSON format

Types

This section is empty.

Jump to

Keyboard shortcuts

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