http

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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