Skip to content

Commit 6d4e0cb

Browse files
Add docs from gofiber/fiber@58d07f0
1 parent 58a7511 commit 6d4e0cb

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

docs/core/middleware/earlydata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Make sure to enable fiber's `EnableTrustedProxyCheck` config option before using
1111

1212
Also be aware that enabling support for early data in your reverse proxy (e.g. nginx, as done with a simple `ssl_early_data on;`) makes requests replayable. Refer to the following documents before continuing:
1313

14-
- <https://datatracker.ietf.org/doc/html/rfc8446#section-8>
15-
- <https://blog.trailofbits.com/2019/03/25/what-application-developers-need-to-know-about-tls-early-data-0rtt/>
14+
- [datatracker](https://datatracker.ietf.org/doc/html/rfc8446#section-8)
15+
- [trailofbits](https://blog.trailofbits.com/2019/03/25/what-application-developers-need-to-know-about-tls-early-data-0rtt)
1616

1717
By default, this middleware allows early data requests on safe HTTP request methods only and rejects the request otherwise, i.e. aborts the request before executing your handler. This behavior can be controlled by the `AllowEarlyData` config option.
1818
Safe HTTP methods — `GET`, `HEAD`, `OPTIONS` and `TRACE` — should not modify a state on the server.

docs/core/middleware/idempotency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ id: idempotency
66

77
Idempotency middleware for [Fiber](https://github.com/gofiber/fiber) allows for fault-tolerant APIs where duplicate requests — for example due to networking issues on the client-side — do not erroneously cause the same action performed multiple times on the server-side.
88

9-
Refer to <https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header-02> for a better understanding.
9+
Refer to [datatracker](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header-02) for a better understanding.
1010

1111
## Signatures
1212

docs/core/middleware/monitor.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ You can also access the API endpoint with
6262

6363
## Config
6464

65-
| Property | Type | Description | Default |
66-
|:-----------|:------------------------|:--------------------------------------------------------------------|:----------------------------------------------------------------------------|
67-
| Title | `string` | Metrics page title | "Fiber Monitor" |
68-
| Refresh | `time.Duration` | Refresh period | 3 seconds |
69-
| APIOnly | `bool` | Whether the service should expose only the monitoring API | false |
70-
| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` |
71-
| CustomHead | `string` | Custom HTML Code to Head Section(Before End) | empty |
72-
| FontURL | `string` | FontURL for specify font resource path or URL | "<https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap>" |
73-
| ChartJsURL | `string` | ChartJsURL for specify ChartJS library path or URL | "<https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.bundle.min.js>" |
65+
| Property | Type | Description | Default |
66+
|:-----------|:------------------------|:--------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|
67+
| Title | `string` | Metrics page title | "Fiber Monitor" |
68+
| Refresh | `time.Duration` | Refresh period | 3 seconds |
69+
| APIOnly | `bool` | Whether the service should expose only the monitoring API | false |
70+
| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` |
71+
| CustomHead | `string` | Custom HTML Code to Head Section(Before End) | empty |
72+
| FontURL | `string` | FontURL for specify font resource path or URL | "[fonts.googleapis.com](https://fonts.googleapis.com/css2?family=Roboto:wght@400;900&display=swap)" |
73+
| ChartJsURL | `string` | ChartJsURL for specify ChartJS library path or URL | "[cdn.jsdelivr.net](https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.bundle.min.js)" |
7474

7575
## Default Config
7676

docs/core/middleware/proxy.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,18 @@ app.Use(proxy.Balancer(proxy.Config{
155155

156156
## Config
157157

158-
| Property | Type | Description | Default |
159-
|:----------------|:-----------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------|
160-
| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` |
161-
| Servers | `[]string` | Servers defines a list of `<scheme>://<host>` HTTP servers, which are used in a round-robin manner. i.e.: "<https://foobar.com>, <http://www.foobar.com>" | (Required) |
162-
| ModifyRequest | `fiber.Handler` | ModifyRequest allows you to alter the request. | `nil` |
163-
| ModifyResponse | `fiber.Handler` | ModifyResponse allows you to alter the response. | `nil` |
164-
| Timeout | `time.Duration` | Timeout is the request timeout used when calling the proxy client. | 1 second |
165-
| ReadBufferSize | `int` | Per-connection buffer size for requests' reading. This also limits the maximum header size. Increase this buffer if your clients send multi-KB RequestURIs and/or multi-KB headers (for example, BIG cookies). | (Not specified) |
166-
| WriteBufferSize | `int` | Per-connection buffer size for responses' writing. | (Not specified) |
167-
| TlsConfig | `*tls.Config` (or `*fasthttp.TLSConfig` in v3) | TLS config for the HTTP client. | `nil` |
168-
| DialDualStack | `bool` | Client will attempt to connect to both IPv4 and IPv6 host addresses if set to true. | `false` |
169-
| Client | `*fasthttp.LBClient` | Client is a custom client when client config is complex. | `nil` |
158+
| Property | Type | Description | Default |
159+
|:----------------|:-----------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------|
160+
| Next | `func(fiber.Ctx) bool` | Next defines a function to skip this middleware when returned true. | `nil` |
161+
| Servers | `[]string` | Servers defines a list of `<scheme>://<host>` HTTP servers, which are used in a round-robin manner. i.e.: "[https://foobar.com](https://foobar.com), [http://www.foobar.com](http://www.foobar.com)" | (Required) |
162+
| ModifyRequest | `fiber.Handler` | ModifyRequest allows you to alter the request. | `nil` |
163+
| ModifyResponse | `fiber.Handler` | ModifyResponse allows you to alter the response. | `nil` |
164+
| Timeout | `time.Duration` | Timeout is the request timeout used when calling the proxy client. | 1 second |
165+
| ReadBufferSize | `int` | Per-connection buffer size for requests' reading. This also limits the maximum header size. Increase this buffer if your clients send multi-KB RequestURIs and/or multi-KB headers (for example, BIG cookies). | (Not specified) |
166+
| WriteBufferSize | `int` | Per-connection buffer size for responses' writing. | (Not specified) |
167+
| TlsConfig | `*tls.Config` (or `*fasthttp.TLSConfig` in v3) | TLS config for the HTTP client. | `nil` |
168+
| DialDualStack | `bool` | Client will attempt to connect to both IPv4 and IPv6 host addresses if set to true. | `false` |
169+
| Client | `*fasthttp.LBClient` | Client is a custom client when client config is complex. | `nil` |
170170

171171
## Default Config
172172

0 commit comments

Comments
 (0)