Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 [Feature]: add envvar expose middleware #2054

Merged
merged 12 commits into from Aug 30, 2022
3 changes: 2 additions & 1 deletion .github/README.md
Expand Up @@ -595,13 +595,14 @@ func main() {
Here is a list of middleware that are included within the Fiber framework.

| Middleware | Description |
| :------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|:---------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [basicauth](https://github.com/gofiber/fiber/tree/master/middleware/basicauth) | Basic auth middleware provides an HTTP basic authentication. It calls the next handler for valid credentials and 401 Unauthorized for missing or invalid credentials. |
| [cache](https://github.com/gofiber/fiber/tree/master/middleware/cache) | Intercept and cache responses |
| [compress](https://github.com/gofiber/fiber/tree/master/middleware/compress) | Compression middleware for Fiber, it supports `deflate`, `gzip` and `brotli` by default. |
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_ckb.md
Expand Up @@ -601,6 +601,7 @@ func main() {
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_de.md
Expand Up @@ -571,6 +571,7 @@ Hier finden Sie eine Liste der Middleware, die im Fiber-Framework enthalten ist.
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_es.md
Expand Up @@ -571,6 +571,7 @@ Aqu铆 est谩 una lista del middleware incluido en el marco web Fiber.
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_fa.md
Expand Up @@ -686,6 +686,7 @@ func main() {
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) |賮毓丕賱 爻丕夭蹖 賴丿乇 賴丕蹖 cross-origin 亘丕 诏夭蹖賳賴 賴丕蹖 賲禺鬲賱賮.|
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) |丿乇 亘乇丕亘乇 丨賲賱丕鬲 CSRF 丕蹖賲賳蹖 丕蹖噩丕丿 賲蹖讴賳丿.|
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) |賲賯丕丿蹖乇 讴賵讴蹖 賴丕乇丕 乇賲夭賳诏丕乇蹖 賲蹖讴賳丿.|
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | 亘丕 丕乇丕卅賴 鬲賳馗蹖賲丕鬲 丕禺鬲蹖丕乇蹖貙 賲鬲睾蹖乇賴丕蹖 賲丨蹖胤 乇丕 丿乇 賲毓乇囟 丿蹖丿 賯乇丕乇 丿賴蹖丿. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | 賲蹖丿賱賵乇 ETag 亘賴 讴卮 賴丕 丕噩丕夭賴 賲蹖丿賴丿 讴丕乇丌賲丿 鬲乇 毓賲賱 讴乇丿賴 賵 丿乇 倬賴賳丕蹖 亘丕賳丿 氐乇賮賴 噩賵蹖蹖 讴賳賳丿. 亘賴 毓賳賵丕賳 蹖讴 賵亘 爻乇賵乇 賳蹖丕夭蹖 亘賴 丿丕丿賳 倬丕爻禺 讴丕賲賱 賳蹖爻鬲 丕诏乇 賲丨鬲賵丕 鬲睾蹖蹖乇 賳讴乇丿賴 亘丕卮丿. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | 賲蹖丿賱賵乇 Expvar 賲蹖鬲賵丕賳丿 賲鬲睾蹖乇 賴丕蹖蹖 乇丕 鬲毓乇蹖賮 讴乇丿賴 賵 賲賯丕丿蹖乇 丕賳賴丕 乇丕 丿乇 夭賲丕賳 丕噩乇丕 亘丕 賮乇賲鬲 JSON 亘賴 卮賲丕 賳卮丕賳 丿賴丿. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | 噩賱賵诏蹖乇蹖 賵 蹖丕 讴卮 讴乇丿賳 丿乇禺賵丕爻鬲 賴丕蹖 favicon 丿乇 氐賵乇鬲蹖 讴賴 賲爻蹖乇 蹖讴 賮丕蹖賱 乇丕 丿丕丿賴 亘丕卮蹖丿.|
Expand Down
1 change: 1 addition & 0 deletions .github/README_fr.md
Expand Up @@ -573,6 +573,7 @@ Here is a list of middleware that are included within the Fiber framework.
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_he.md
Expand Up @@ -689,6 +689,7 @@ Here is a list of middleware that are included within the Fiber framework.
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down
1 change: 1 addition & 0 deletions .github/README_id.md
Expand Up @@ -574,6 +574,7 @@ Kumpulan `middleware` yang ada didalam kerangka kerja Fiber.
| [cors](https://github.com/gofiber/fiber/tree/master/middleware/cors) | Enable cross-origin resource sharing \(CORS\) with various options. |
| [csrf](https://github.com/gofiber/fiber/tree/master/middleware/csrf) | Protect from CSRF exploits. |
| [encryptcookie](https://github.com/gofiber/fiber/tree/master/middleware/encryptcookie) | Encrypt middleware which encrypts cookie values. |
| [envvar](https://github.com/gofiber/fiber/tree/master/middleware/envvar) | Expose environment variables with providing an optional config. |
| [etag](https://github.com/gofiber/fiber/tree/master/middleware/etag) | ETag middleware that lets caches be more efficient and save bandwidth, as a web server does not need to resend a full response if the content has not changed. |
| [expvar](https://github.com/gofiber/fiber/tree/master/middleware/expvar) | Expvar middleware that serves via its HTTP server runtime exposed variants in the JSON format. |
| [favicon](https://github.com/gofiber/fiber/tree/master/middleware/favicon) | Ignore favicon from logs or serve from memory if a file path is provided. |
Expand Down