httputils

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestServerError

func BadRequestServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)

BadRequestServerError http response

func InternalServerError

func InternalServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)

InternalServerError http response

func NotFoundServerError

func NotFoundServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)

NotFoundServerError http response

func ServerError

func ServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, code int, err error)

ServerError http response

func UnauthorizedServerError

func UnauthorizedServerError(l *zap.Logger, w http.ResponseWriter, r *http.Request, err error)

UnauthorizedServerError http response

Types

This section is empty.

Jump to

Keyboard shortcuts

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