Remove trailing spaces

gaby/issue3095
Juan Calderon-Perez 2024-11-13 20:56:29 -05:00 committed by GitHub
parent 5aae1c9d9a
commit d571061c33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 11 deletions

View File

@ -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)
```

View File

@ -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.