1 Star 2 Fork 0

api-go/iris

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cfg.go 818 Bytes
一键复制 编辑 原始数据 按行查看 历史
package cfg
import "time"
// The constants be used by both client and server
var (
FailStatus = 400
SuccessStatus = 200
ContentHTML = "text/html; charset=utf-8"
ContentTypeHeader = "Content-Type"
StatusCodeHeader = "Status"
QueryCacheKey = "cache_key"
QueryCacheDuration = "cache_duration"
QueryCacheStatusCode = "cache_status_code"
QueryCacheContentType = "cache_content_type"
RequestCacheTimeout = 5 * time.Second
)
// NoCacheHeader is the static header key which is setted to the response when NoCache is called,
// used inside nethttp and fhttp Skippers.
var NoCacheHeader = "X-No-Cache"
// MinimumCacheDuration is the minimum duration from time.Now
// which is allowed between cache save and cache clear
var MinimumCacheDuration = 2 * time.Second
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/netscript/iris.git
git@gitee.com:netscript/iris.git
netscript
iris
iris
v8.5.0

搜索帮助

0d507c66 1850385 C8b1a773 1850385