contenttyper

package module
v0.0.0-...-3b928be Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Mimetypes map[string]string
	// contains filtered or unexported fields
}

func New

func New() *Middleware

func (*Middleware) AddMimeType

func (m *Middleware) AddMimeType(ext string, mimetype string)

func (*Middleware) AddMimeTypes

func (m *Middleware) AddMimeTypes(mimetypes map[string]string)

func (*Middleware) Handler

func (m *Middleware) Handler() gin.HandlerFunc

func (*Middleware) Register

func (m *Middleware) Register()

Jump to

Keyboard shortcuts

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