diff --git a/docs/api/app.md b/docs/api/app.md index 82233988..403213d3 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -50,7 +50,7 @@ The `MountPath` property contains one or more path patterns on which a sub-app w ```go title="Signature" func (app *App) MountPath() string ``` - + ```go title="Example" package main @@ -89,7 +89,7 @@ You can group routes by creating a `*Group` struct. ```go title="Signature" func (app *App) Group(prefix string, handlers ...Handler) Router ``` - + ```go title="Example" package main @@ -622,7 +622,7 @@ func main() { ## RegisterCustomConstraint `RegisterCustomConstraint` allows you to register custom constraints. - + ```go title="Signature" func (app *App) RegisterCustomConstraint(constraint CustomConstraint) ``` @@ -632,7 +632,7 @@ See the [Custom Constraint](../guide/routing.md#custom-constraint) section for m ## SetTLSHandler Use `SetTLSHandler` to set [`ClientHelloInfo`](https://datatracker.ietf.org/doc/html/rfc8446#section-4.1.2) when using TLS with a `Listener`. - + ```go title="Signature" func (app *App) SetTLSHandler(tlsHandler *TLSHandler) ``` diff --git a/docs/api/bind.md b/docs/api/bind.md index d72a9009..6a5f6dd3 100644 --- a/docs/api/bind.md +++ b/docs/api/bind.md @@ -464,13 +464,6 @@ If there's an error, it will return the error and set HTTP status to `400 Bad Re func (b *Bind) Must() *Bind ``` -```go title="Example" -app.Get("/coffee", func(c fiber.Ctx) error { - // => HTTP - GET 301 /teapot - return c.Redirect().Status(fiber.StatusMovedPermanently).To("/teapot") -}) -``` - ### Should To handle binder errors manually, you can use the `Should` method.