middleware

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compression added in v0.0.15

func Compression(ctx mojito.Context, next func() error) (err error)

Compression compresses the http response if supported by the client.

func Logging added in v0.0.15

func Logging(ctx mojito.Context, next func() error) (err error)

Logging provides a simple middleware implementation that will log every request handled by mojito

func RequestLogger

func RequestLogger(ctx mojito.Context, next func() error) (err error)

RequestLogger provides a simple middleware implementation that will log every request handled by mojito Deprecated: use middleware.Logging instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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