pull/767/head
Fenny 2020-09-13 11:39:55 +02:00
parent 9a31f89fdb
commit 2951c6ac0d
2 changed files with 3 additions and 2 deletions

3
app.go
View File

@ -224,7 +224,7 @@ type Static struct {
Index string `json:"index"`
}
// Default settings
// Default Config values
const (
DefaultBodyLimit = 4 * 1024 * 1024
DefaultConcurrency = 256 * 1024
@ -233,6 +233,7 @@ const (
DefaultCompressedFileSuffix = ".fiber.gz"
)
// Default ErrorHandler
var DefaultErrorHandler = func(c *Ctx, err error) error {
code := StatusInternalServerError
if e, ok := err.(*Error); ok {

2
ctx.go
View File

@ -333,7 +333,7 @@ func (c *Ctx) Request() *fasthttp.Request {
return &c.fasthttp.Request
}
// Request return the *fasthttp.Response object
// Response return the *fasthttp.Response object
// This allows you to use all fasthttp response methods
// https://godoc.org/github.com/valyala/fasthttp#Response
func (c *Ctx) Response() *fasthttp.Response {