【文件属性】:
文件名称:negroni-nocache:没有缓存negroni中间件
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-21 10:41:36
Go
用于nocache的negroni中间件
Negroni中间件,无缓存HTTP标头
用法
package main
import (
"fmt"
"github.com/codegangsta/negroni"
"github.com/rabeesh/negroni-nocache"
"net/http"
)
func main () {
mux := http . NewServeMux ()
mux . HandleFunc ( "/" , func ( rw http. ResponseWriter , req * http. Request ) {
fmt . Fprintf ( rw , "Welcome to the home page!" )
})
n := negroni . New ()
【文件预览】:
negroni-nocache-master
----readme.md(555B)
----LICENSE(1KB)
----nocache.go(855B)
----nocache_test.go(927B)