limitbody

package
v0.0.0-...-9f41b84 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MB = 1 << 20

MB - one MB.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limitbody

type Limitbody struct{}

Limitbody - Middleware.

func New

func New() *Limitbody

New - return Limitbody instance

func (*Limitbody) Middleware

func (l *Limitbody) Middleware(ctx *kira.Context, next kira.HandlerFunc)

Middleware handler.

Jump to

Keyboard shortcuts

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