controllers

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapt

func Adapt(handler http.Handler, adapters ...Adapter) http.Handler

func SetContentLength added in v0.0.7

func SetContentLength(contentLength int, w http.ResponseWriter)

func SetContentType added in v0.0.7

func SetContentType(contentType string, w http.ResponseWriter)

Types

type Adapter

type Adapter func(http.Handler) http.Handler

type Controller

type Controller func(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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