http

package
v0.0.0-...-c8e5cf1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType = "Content-Type"
	HeaderRequestID   = "X-Watcher-Request-ID"

	ContentApplicationJSON = "application/json"
)

Variables

This section is empty.

Functions

func DecodeJSON

func DecodeJSON(r io.Reader, v interface{}) error

func ResponseJSON

func ResponseJSON(w http.ResponseWriter, v interface{}, statusCode int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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