Clean root

This commit is contained in:
Fenny 2020-02-12 07:04:57 +01:00
parent 7c66aed75c
commit 0c44c1460d
2 changed files with 6 additions and 3 deletions

View File

View File

@ -241,7 +241,7 @@ func (ctx *Ctx) FormValue(key string) string {
// Fresh : https://fiber.wiki/context#fresh
func (ctx *Ctx) Fresh() bool {
return true
return false
}
// Get : https://fiber.wiki/context#get
@ -361,7 +361,10 @@ func (ctx *Ctx) Query(key string) string {
// Range : https://fiber.wiki/context#range
func (ctx *Ctx) Range() {
// https://expressjs.com/en/api.html#req.range
// https://github.com/jshttp/range-parser/blob/master/index.js
// r := ctx.Fasthttp.Request.Header.Peek(fasthttp.HeaderRange)
// *magic*
}
// Route : https://fiber.wiki/context#route
@ -386,7 +389,7 @@ func (ctx *Ctx) SignedCookies() {
// Stale : https://fiber.wiki/context#stale
func (ctx *Ctx) Stale() bool {
return true
return !ctx.Fresh()
}
// Subdomains : https://fiber.wiki/context#subdomains