echoutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_AUTH_SCHEMA_BEARER = "Bearer"
	HTTP_HEAD_AUTHORIZATION = "Authorization"
)

Variables

This section is empty.

Functions

func Bind

func Bind(ctx echo.Context, v interface{}) error

func Body

func Body(ctx echo.Context) ([]byte, error)

func FormParam

func FormParam(echo_ echo.Context) map[string]string

func FormParamString

func FormParamString(echo_ echo.Context) string

func GetAuthorizationHeader

func GetAuthorizationHeader(header http.Header) string

func HttpError

func HttpError(err error, code int) error

HttpError

func Param

func Param(echo_ echo.Context) map[string]string

func ParamString

func ParamString(echo_ echo.Context) string

func ParseAuthorizationHeader

func ParseAuthorizationHeader(header http.Header) (auth_scheme string, auth_value string, ok bool)

func QueryParam

func QueryParam(echo_ echo.Context) map[string]string

func QueryParamString

func QueryParamString(echo_ echo.Context) string

func SeHttpHeader

func SeHttpHeader(header http.Header, key string, value ...string)

func WrapHttpError

func WrapHttpError(code int, fn ...func() error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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