Documentation ¶
Overview ¶
Package http provides a http server with features; acme, cors, etc
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBodyLimit = 1024 * 1024 * 1024 * 1024 * 1024 // 1 PB
View Source
var DefaultErrorHandler = func(ctx *fiber.Ctx, err error) error { code := fiber.StatusInternalServerError body := fiber.Map{"id": "go.vine.api", "code": code} if e, ok := err.(*errors.Error); ok { code = int(e.Code) body["status"] = e.Status body["detail"] = e.Detail body["code"] = e.Code } else if e, ok := err.(*fiber.Error); ok { code = e.Code body["detail"] = e.Error() body["code"] = e.Code } return ctx.Status(code).JSON(body) }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.