mirror of https://github.com/gofiber/fiber.git
⚡ v2
parent
9a31f89fdb
commit
2951c6ac0d
3
app.go
3
app.go
|
@ -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
2
ctx.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue