http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusBadRequest

func StatusBadRequest(w http.ResponseWriter, err error)

func StatusConflict

func StatusConflict(w http.ResponseWriter, err error)

func StatusCreated

func StatusCreated(w http.ResponseWriter, content interface{})

func StatusForbidden

func StatusForbidden(w http.ResponseWriter, err error)

func StatusInternalServerError

func StatusInternalServerError(w http.ResponseWriter, err error)

func StatusMethodNotAllowed

func StatusMethodNotAllowed(w http.ResponseWriter, err error)

func StatusNoContent

func StatusNoContent(w http.ResponseWriter)

func StatusNotFound

func StatusNotFound(w http.ResponseWriter, err error)

func StatusOK

func StatusOK(w http.ResponseWriter, content interface{})

func StatusUnauthorized

func StatusUnauthorized(w http.ResponseWriter, err error)

func StatusUnprocessableEntity

func StatusUnprocessableEntity(w http.ResponseWriter, err error)

Types

type Interface

type Interface interface {
	Get(w http.ResponseWriter, r *http.Request)
	Put(w http.ResponseWriter, r *http.Request)
	Post(w http.ResponseWriter, r *http.Request)
	Delete(w http.ResponseWriter, r *http.Request)
	Options(w http.ResponseWriter, r *http.Request)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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