httputil

package
v0.0.0-...-71cdb78 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

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

Error creates an HTTP response to handle errors.

func Response

func Response(w http.ResponseWriter, v interface{})

Response creates an HTTP response for successful calls.

func UnmarshalJSON

func UnmarshalJSON(r *http.Request, v interface{}) error

UnmarshalJSON unmarshals JSON data from the HTTP request body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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