reserr

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidPath

func InvalidPath(w http.ResponseWriter, r *http.Request)

func NotImplemented

func NotImplemented(w http.ResponseWriter, r *http.Request)

func Write

func Write(w http.ResponseWriter, r *http.Request, statusCode int, text string)

Types

type ResErr

type ResErr string

func New

func New(docURL string) ResErr

New is useless.

func (ResErr) InvalidPath

func (resErr ResErr) InvalidPath(w http.ResponseWriter, r *http.Request)

func (ResErr) NotImplemented

func (resErr ResErr) NotImplemented(w http.ResponseWriter, r *http.Request)

func (ResErr) SafeWrite

func (resErr ResErr) SafeWrite(w http.ResponseWriter, r *http.Request, statusCode int, text string)

func (ResErr) Write

func (resErr ResErr) Write(w http.ResponseWriter, r *http.Request, statusCode int, text string)

Write is a faster and prettier implementation, but maybe unsafe.

Jump to

Keyboard shortcuts

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