response

package
v0.0.0-...-1045ef1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPAccepted

func HTTPAccepted(w http.ResponseWriter)

HTTPAccepted writes http response code 202

func HTTPAcceptedWithBody

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

HTTPAccepted writes http response code 202 with a json body

func HTTPBad

func HTTPBad(w http.ResponseWriter, err error)

HTTPBad writes http response code 400

func HTTPCreated

func HTTPCreated(w http.ResponseWriter)

HTTPCreated writes http response code 201

func HTTPNoContent

func HTTPNoContent(w http.ResponseWriter)

HTTPNoContent writes http response code 204

func HTTPNotFound

func HTTPNotFound(w http.ResponseWriter, err error)

HTTPNotFound writes http response code 404

func HTTPOk

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

HTTPOk writes http response code 200

Types

This section is empty.

Jump to

Keyboard shortcuts

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