Commit Graph

265 Commits (export-buildtree)

Author SHA1 Message Date
Ruan Heyns f68ec0dfbb
Update ctx.md: Add a warning on security implications when using X-Forwarded-For improperly (#2520)
Update ctx.md

Add a warning on security implications when using X-Forwarded-For improperly
2023-06-26 10:24:50 +02:00
Jiun Lee fefc533834
🚀 Add Logger interface and fiberlog (#2499)
* add log for fiber

* replace log in fiber

* add Log use to adapt for log libraries

* Update app.go

Co-authored-by: Tomás Warynyca <41587659+tomaswarynyca@users.noreply.github.com>

* wip: add log docs

* add WithLogger use to print key and value

* remove CtxLogger and add WithContext use to bind Context

* fix errcheck

* fix errcheck

* update log.md

---------

Co-authored-by: Tomás Warynyca <41587659+tomaswarynyca@users.noreply.github.com>
2023-06-26 08:16:57 +02:00
W. Xiaoyun 040aac94c6
✏️ Fix: typo in ctx.md (#2516)
Fix: typo in ctx.md
2023-06-23 11:44:52 +02:00
RW 1603a148fe
Update logger.md 2023-06-22 13:21:14 +02:00
RW b308b2b7a6
Update logger.md
correct spacings
2023-06-22 13:07:33 +02:00
cmd777 1b060cb150
🩹 Fix: default logger color behaviour (#2513)
* Fix logger colors

* Fix tests
Basically add ˙enableColors: true˙ back to default config
2023-06-22 13:06:37 +02:00
RW 2eaeb0f3f7
Update hooks.md
correct docs syntax error
2023-06-19 13:24:41 +02:00
SamanDev ed95fa8c7e
🔥 Feature: add ability to print custom message on startup (#2491)
* feat: add a variadic parameter on OnListenHandler

* feat: accept a variadic ListenData in startupProcess parameters

* feat: add startupProcess variadic ListenData to function

* refactor: use runOnListenHooks instead of startupProcess for run onListenHooks

* refactor: remove variadic to make codes straightforward

* fix: add listen data to runOnListenHooks

* test: add listenData parameter to OnListen tests

* docs: update OnListen docs

* fix: remove unused codes

* docs: add tabs to onListen hook example

* docs: add if statement to docs example

* docs: replace fmt with log

* docs: fix return value of example

* docs: make 0.0.0.0 string a constant

* fix: change type of TLS from string to bool

* fix: return bool instead of a string

* docs: update example with new TLS type

* fix: change name tls to isTls to prevent shadowing tls variable

* style: make syntax of onListen example shorter

* refactor: remove unused no-lint comment

* refactor: change isTls to isTLS

* fix: add nolint for isTLS bool param

* Update listen.go

---------

Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
2023-06-19 13:11:22 +02:00
我的名字叫浩仔 3dc9e1df80
🐛 bug: fix docs api fiber custom config (#2510)
fix: docs api fiber custom config

Co-authored-by: haoc <haoc@opera.com>
2023-06-19 12:22:55 +02:00
RW 9bcdb560dc
Update ctx.md 2023-06-19 10:49:25 +02:00
RW 204b01aeb2
Update ctx.md 2023-06-19 10:47:45 +02:00
RW fa5935b7e9
Update ctx.md
reformat queries docu
2023-06-19 10:43:15 +02:00
RW f86423d625
Update ctx.md
reformat ctx.Queries() example
2023-06-19 10:41:53 +02:00
Iliya d87065f5f2
🚀 FEATURE: add queries function (#2475)
* 🚀 FEATURE: add queries method

* 📚 DOCS: add documents for queries method.

* 🩹 Fix: fix wrap error returned from Queries function

* 🚨 tests: add url encoded tests

* 🔥 feature: add url encoded support for queries

* 🩹 Fix: fix wrap error returned from Queries function

* ♻️ Refactor: change error message of url.QueryUnescape

* ♻️ Refactor: refactor of mapping key and value queries

* 🚨 Test: Validate to fail parse queries

* 🚨 Test: Add benchmark test for Queries

* 🩹 Fix: remove parsing for encoded urls

* ♻️ Refactor: change string function to c.app.getString fucntion

Co-authored-by: cmd777 <83428931+cmd777@users.noreply.github.com>

* ♻️ Refactor: change name of benchamark function ctx queries

Co-authored-by: leonklingele <git@leonklingele.de>

* ♻️ Refactor: remove empty lines

Co-authored-by: leonklingele <git@leonklingele.de>

* Revert "♻️ Refactor: change string function to c.app.getString fucntion"

This reverts commit 28febf9e60.

* 📚 Docs: add documents for queries method

* 🚨 Tests: add more tests for queries function

* ♻️ Refactor: change string function to c.app.getString function

* 🚨 Tests: add more test for queries function

* 📚 Docs: add more documents to queries function

---------

Co-authored-by: cmd777 <83428931+cmd777@users.noreply.github.com>
Co-authored-by: leonklingele <git@leonklingele.de>
2023-06-12 07:51:57 +02:00
M. Efe Çetin f5d2abb948
📝 docs: update version of html template (#2505) 2023-06-10 17:16:11 +03:00
Jason McNeil 0f5ffed3cc
🐛fix: update getOffer to consider quality and specificity (#2486)
* feat: getOffer consider q value and specificity

* fix: ignore q=0

* fix: float

* test: client-prefered order and q=0 not acceptable

* fix: always use my insertion sort.

* fix: sort.SliceStable if > 20

* fix: zero allocations

* perf: optimize the sort

* chore: fix lint issue

* fix: consider order

* chore: fix test func name

* chore: fix helper test func name

* chore: revert fix

* perf: use fasthttp.ParseUfloat

* test: GetOffer and SortAcceptedTypes

* chore: remote nil check

* test: sortAcceptedTypes

* fix: use utils.UnsafeBytes

* docs: update docs for fiber PR #2486

* docs: update docs for fiber PR #2486

* test: add test from docs

* fix: yaml
2023-06-07 17:51:45 +02:00
Anzhi 06ef450a8a
🚀 Add DisableColors to set the default output format (#2493)
Add DisableColor for default logger format
2023-06-05 13:20:45 +02:00
leonklingele c56b4e66a0
middleware/adaptor: allow to convert fiber.Ctx to (net/http).Request (#2461) 2023-05-15 13:04:58 +02:00
M. Efe Çetin c7c37d9b50
♻️ refactor: merge some external middlewares to core (#2453)
* ♻️ refactor: merge adaptor, helmet, keyauth, redirect, rewrite middlewares to core

* fix linting issues

* fix linting issues

* fix linting issues

* update
2023-05-10 08:01:49 +02:00
bcd 3c3f12b76c
[Feature]: Add filesystem config contentTypeCharset support (#2438)
* Update filesystem.go

* Update filesystem_test.go

* Update filesystem.md

* fmt
2023-05-02 08:40:20 +02:00
RW ee2b13c8c0
Update timeout.md 2023-04-14 12:18:00 +02:00
RW 41b08b6cb0
Update faq.md 2023-04-14 11:36:57 +02:00
cmd777 3b7a7d491b
📚 Docs: Fix import and comma issues (#2410)
Fix import and comma issues
2023-04-13 12:32:39 +08:00
James Lucas 866d5b7628
feat(cors): Added new 'AllowOriginsFunc' function. (#2394)
*  feat(cors): Added new 'AllowOriginsFunc' function.

* feat(cors): Added warning log for when both 'AllowOrigins' and 'AllowOriginsFunc' are set.

* feat(docs): Updated docs to include note about discouraging the use of this function in production workloads.

---------

Co-authored-by: RW <rene@gofiber.io>
2023-04-11 10:24:29 +02:00
RW fcf708dfc2
Update routing.md 2023-04-10 12:31:49 +02:00
RW c396d2aa45
Update grouping.md 2023-04-10 12:28:57 +02:00
cmd777 8b1f9260a3
📚 Docs: Fix typos, and make middleware documentation more consistent (#2408)
Fix typos, and make docs more consistent
This fixes several typos in the ISSUE_TEMPLATES, as well as improve
their readability, also makes the documentation markdowns more
consistent
2023-04-10 10:48:12 +08:00
Hakan Kutluay 22b407e2e7
🐛 [Bug-Fix] add original timeout middleware (#2367)
* add original timeout middleware

* fix linter issues

* deprecate original timeout middleware

* update timeout middleware documentation
2023-04-09 16:05:51 +02:00
Juan C. Yamacho H 562d15db86
🚀 Feature: Public ShutdownWithContext (#2407)
* feat: public shutdown with context

* docs: add server shutdown option

* chore: revert spacing changes

* test: app shutdown with context
2023-04-09 21:08:03 +08:00
Shahriar Sohan 74a9fa96f5
docs: added code link to fiber config fields (#2385)
* docs: added code link to fiber config fields

* docs: added code link to fiber config fields [reference line link updated]

* docs: added code link to fiber config fields [reference line link updated]

* removed reference line link from docs

* docs/api: fix indentation

---------

Co-authored-by: leonklingele <git@leonklingele.de>
2023-04-04 11:12:53 +02:00
RW e9541945e5
Update faq.md 2023-03-31 12:36:30 +02:00
RW 856332c16a
Update faq.md 2023-03-31 12:35:20 +02:00
João Vitor 5eb4d57d88
feat: adding to fac sub domain routing 📝 (#2393)
* feat: adding to fac sub domain routing

* update: docs to include a example

* Update faq.md

* fix code after tests

---------

Co-authored-by: RW <rene@gofiber.io>
2023-03-31 12:29:14 +02:00
Iliya bf31f1f3c6
💊 Change default value of Querybool from true to false. (#2391)
* 🩹 Fix QueryBool function: change default value from true to false

* 📚 Update QueryBool function document

* Update ctx.md

---------

Co-authored-by: RW <rene@gofiber.io>
2023-03-30 13:26:26 +02:00
René Werner c9121189a9 Fix docu 2023-03-24 18:58:15 +01:00
René Werner cc5c793d83 Add documentation for ctx.QueryFloat and ctx.QueryBool 2023-03-24 18:54:09 +01:00
René Werner 1f52799686 Refresh middleware documentation 2023-03-24 13:23:52 +01:00
Kyle Manning 32c3961726
corrected coding typos in MountPath docs section (#2379)
* corrected coding typos in MountPath docs section

* Update app.md

---------

Co-authored-by: Kyle Manning <kyle@manning.jp>
Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
2023-03-22 09:44:36 +03:00
M. Efe Çetin 9064eb6469
🧹 chore: drop go 1.16 support & update dependencies (#2374)
* 🧹 chore: drop go 1.16 support

* downgrade uniseg

* fix tests

* fix tests

* fix tests
2023-03-20 08:22:31 +01:00
Benjamin Grosse d7b36cde54
🐛 requestid.Config.ContextKey is interface{} (#2369)
requestid.Config.ContextKey is interface{}

Consistent with c.Locals(key inteface{}, ...).
Fixes #2356
2023-03-14 19:37:10 +01:00
RW 0dee42a57c
Update ctx.md ip documentation 2023-03-14 11:24:11 +01:00
Tumushimire Yves 634f163e3f
🚀 [Feature]: SessionOnly when cookie.Expires is 0 (#2152)
* feature: session only for zero expire cookie #2145

* refactor condition to set MaxAge and Expire on cookie

* move checking zero maxage and expire in session middleware

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>

* feature: session only for zero expire cookie #2145

* refactor condition to set MaxAge and Expire on cookie

* move checking zero maxage and expire in session middleware

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>

* CR changes

* some updates

---------

Signed-off-by: Yves Tumushimire <yvestumushimire@gmail.com>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
Co-authored-by: René Werner <rene.werner@verivox.com>
2023-03-12 19:14:22 +01:00
Hong Seungwoo c1c119337f
Fix typo in docs (#2357)
Co-authored-by: Seungwoo Hong <qksn1541@hits.ai>
2023-03-08 17:59:36 +03:00
Muhammed Efe Çetin 15e9235383
📝 docs: remove README.mds from middleware dirs 2023-03-06 16:42:35 +03:00
lublak 2e7e879d6f
feature: allow preloaded certs with prefork (#2351)
* allow preloaded certs with prefork

* add to documentation

* add comments for ListenMutualTLSWithCertificate

* add test for WithCertificate

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

* Update benchmark.yml

---------

Co-authored-by: RW <rene@gofiber.io>
2023-03-06 12:03:41 +01:00
René Werner f6b5ed6d26 update proxy docs 2023-02-25 10:57:12 +01:00
René Werner 35e6825614 update proxy docs 2023-02-25 10:55:27 +01:00
René Werner bfa8b6a222 Merge remote-tracking branch 'origin/master' 2023-02-25 10:44:08 +01:00
M. Efe Çetin a1eb0e69a6
📝 docs: fix example on envvar middleware 2023-02-25 12:43:57 +03:00
René Werner d034115dec optimize workflows and test docs sync 2023-02-25 10:43:53 +01:00
M. Efe Çetin b3643198f8
📝 docs: automated synchronization with `gofiber/docs` (#2344)
Automated Synchronization with gofiber/docs repo
2023-02-25 10:29:07 +01:00
Fenny 3d710a7602 Move docs to separate repository 2020-02-05 22:43:01 +01:00
Fenny 30d0be1e68 Fix docs 2020-02-05 22:34:36 +01:00
Fenny 73835d1807 Exclude some folders from go 2020-02-05 22:28:17 +01:00
Fenny 1fe84e59a4 Add FakeRequest to doc 2020-02-05 18:00:35 +01:00
Fenny bda065478c Edit Doc 2020-02-05 13:26:20 +01:00
Fenny 36efef1f61 v1.3.3 2020-02-05 12:16:21 +01:00
Fenny cfe08a74d3 Edit docs 2020-02-05 12:15:11 +01:00
Fenny ae132e61ed Fix js func 2020-02-05 01:20:45 +01:00
Fenny 6d0e4257e8 Fix import typo 2020-02-05 01:17:31 +01:00
Fenny 3b3dba3fcb Seo and mobile optimization 2020-02-05 01:10:49 +01:00
Fenny 6e1fa09bde Add https://fiber.wiki 2020-02-05 00:42:13 +01:00
Fenny b75bd63aeb Create CNAME 2020-02-04 18:07:00 +01:00
Fenny 3bb1fb9b4c Fix typo 2020-02-04 15:00:33 +01:00
Fenny 40eb4d8f18 Fix coverpage 2020-02-04 14:32:48 +01:00
Fenny 0d3cdef8f1 Fix coverpage 2020-02-04 14:24:42 +01:00
Fenny 7e5e80846b
Merge pull request #23 from Fenny/master
Coverpage fix
2020-02-03 10:25:30 -05:00
Fenny 894ffa3f5c Coverpage fix 2020-02-03 16:25:07 +01:00
Fenny c0f8b802b5
Merge pull request #22 from Fenny/master
Coverpage
2020-02-03 10:24:32 -05:00
Fenny d08ffbd40e Coverpage 2020-02-03 16:24:06 +01:00
Fenny 14c81b47fb
Merge pull request #21 from Fenny/master
Add gitter community
2020-02-03 10:21:07 -05:00
Fenny 44dee4015a Add gitter community 2020-02-03 16:20:41 +01:00
Fenny 4f651a2c55
Merge pull request #18 from Fenny/master
Change example to use Middleware
2020-02-03 09:55:28 -05:00
Fenny 4e5f263cb7 Change example to use Middleware 2020-02-03 15:55:03 +01:00
Fenny 2846b73766
Merge pull request #17 from Fenny/master
Add landing page to docs
2020-02-03 09:50:40 -05:00
Fenny 65be8ea7e6 Remove _navbar 2020-02-03 15:49:53 +01:00
Fenny 49d762eaf7 Add landing page to docs 2020-02-03 15:49:17 +01:00
Vic Shóstak 99d1d59e36
Tiny file size by SVGO 2020-02-03 17:11:45 +03:00
Vic Shóstak 469a354ed7
Add China flag 2020-02-03 16:17:27 +03:00
Fenny ef1b7d7448 Fix typo in doc example 2020-02-03 13:52:36 +01:00
Fenny 26d3283303 Fix typo in doc navbar 2020-02-03 13:50:36 +01:00
Fenny f6489b7405 Deprecated messages, linting, nosec, typo's 2020-02-03 13:40:50 +01:00
Vic Shóstak 342b34b80b Fix typo for functions in Docs, Improve middleware/cors.go 2020-02-02 12:30:59 +03:00
Vic Shóstak 18e7fcfc35 Huge refactoring, Add dummy CORS middleware 2020-02-01 19:42:40 +03:00
Vic Shóstak e8a601094e
Add files via upload 2020-02-01 18:11:04 +03:00
Vic Shóstak 39727e8862
Add files via upload 2020-02-01 17:51:53 +03:00
Fenny ec1ba416bf Add JsonString & JsonBytes + Update benchmark links 2020-01-31 15:41:01 -05:00
Fenny 29091a54b4 Bump v1.2.2 2020-01-31 15:19:57 -05:00
Fenny 3237404584 v1.2.1 🎉 107 Stars 🌟 2020-01-30 23:17:25 -05:00
Fenny 5fa195bd4e Add sjson 2020-01-29 14:51:29 -05:00
Fenny a146f71f01 Typo 2020-01-28 15:02:16 -05:00
Fenny 9ff149324e v1.1.0 🎉 100 Stars 🌟 2020-01-28 14:28:09 -05:00
Fenny 839080a76d Fix typo 2020-01-27 14:51:14 -05:00
Fenny e9d404adb1 Add .Xml() 2020-01-27 14:28:43 -05:00
Fenny 8f8b394aaf Update benchmark results 2020-01-27 12:11:48 -05:00
Fenny 3cca2989f1 Update benchmark results 2020-01-27 12:06:49 -05:00
Fenny cca413fd0f Update benchmark results 2020-01-27 12:04:53 -05:00
Fenny 5bab7a5b62 Update benchmark results 2020-01-27 12:01:38 -05:00
Fenny 20e294ece2 Update benchmark round 2020-01-27 11:54:04 -05:00
Fenny d4a051dc85 Add Format function 2020-01-22 12:08:14 +01:00
Fenny 31876e3109 v1.0.2 2020-01-22 05:42:37 +01:00
Fenny 52712b3e4a Update Accepts 2020-01-21 10:46:39 +01:00
Fenny cbdfbe909c v1.0.1-beta 2020-01-21 08:58:11 +01:00
Fenny 7041f051e1 Update typos 2020-01-21 00:57:10 +01:00
Fenny dbf3375aee Fix typo 2020-01-20 07:42:42 +01:00
Fenny fe35768f4e Fix typo 2020-01-20 07:39:51 +01:00
Fenny 2730e0c2ff v1.0.0-pre-release 2020-01-20 04:33:55 +01:00
Fenny dfe1b87fc3 Update Prefork 2020-01-18 17:22:31 +01:00
Fenny 44661d9270 v0.9.3 2020-01-18 17:15:49 +01:00
Fenny 93e5e0e891 v0.9.0 - Prefork (SO_REUSEPORT) 2020-01-17 21:25:11 +01:00
Fenny fa9b789a87 js fix 2020-01-16 12:50:19 +01:00
Fenny 861422c944 Update examples 2020-01-16 11:00:50 +01:00
Fenny be2e127b01 update license 2020-01-16 10:59:32 +01:00
Fenny 1061d5ee18 Merge remote-tracking branch 'origin/master' 2020-01-16 10:57:06 +01:00
Fenny bc0547c169 Update readme 2020-01-16 10:51:56 +01:00
Fenny 658c4067bd white bg 2020-01-16 09:22:56 +01:00
Fenny 020403f3e7 update gofiber url 2020-01-16 06:55:54 +01:00
Fenny 603d4cf490 Typo 2020-01-16 06:55:20 +01:00
Fenny 359e86f55b v0.8.1 2020-01-16 06:04:28 +01:00
Fenny 64fae732d1
Update getting_started.md 2020-01-16 05:16:05 +01:00
Fenny 04cd3b2b31
Update application.md 2020-01-16 05:15:51 +01:00
Fenny 8c3e77e7f0 Typo 2020-01-16 04:57:30 +01:00
Fenny 7f531b418d Typo 2020-01-16 04:54:26 +01:00
Fenny 286978a4b1 v0.8.0-pre-release 2020-01-16 04:54:00 +01:00
Fenny 453cd6fbb5 v0.7.0 2020-01-16 03:17:49 +01:00
Fenny d0d200e956 v0.7.0 2020-01-16 03:17:23 +01:00
Fenny 43c5a56cf7 - 2020-01-16 02:31:44 +01:00
Fenny 9b6630cc9e v0.6.9 2020-01-16 00:24:58 +01:00
Fenny 8d790b5cf0 v0.6.2 2020-01-15 03:07:49 +01:00
Fenny 1b12f9f232 Add cookie options 2020-01-14 07:36:46 +01:00
Fenny 68a387e620 . 2020-01-14 05:59:10 +01:00
Fenny 2184b7c9b5 Add benchmarks 2020-01-14 05:44:59 +01:00
Fenny fa035ef086 Fix typo 2020-01-13 06:22:15 +01:00
Fenny 3572e48e58 v0.6.0 2020-01-13 06:20:53 +01:00
Fenny 45c097e650 Fix typo 2020-01-12 21:31:07 +01:00
Fenny e65d0999a0 0.5.5: SendStatus, SendString, SendBytes, update doc 2020-01-12 21:26:44 +01:00
Fenny 4d82b053ee Fix typos 2020-01-11 07:02:20 +01:00
Fenny 6616af0125 Update doc 2020-01-11 05:13:38 +01:00
Fenny e9a4f6e360 v0.5.0 2020-01-11 04:59:51 +01:00
Fenny a4f86dbd1e Added 7 new functions, see doc 2020-01-10 03:09:43 +01:00
Fenny 10ead9aa7b Middleware example 2020-01-09 16:24:09 +01:00
Fenny 435d4b78ef Add ReadTimeout to Settings 2020-01-08 23:41:41 +01:00
Fenny d4f81a5a20 . 2020-01-08 20:33:25 -05:00
Fenny f1fc41bb29 . 2020-01-08 20:24:45 -05:00
Fenny 856ef1c528 . 2020-01-08 18:07:21 -05:00
Fenny 0267a020ca . 2020-01-08 17:21:01 -05:00
Fenny e2fa356ef0 . 2020-01-08 17:17:10 -05:00
Fenny a5abb105f5 . 2020-01-08 17:12:18 -05:00
Fenny 6c4d428b69 . 2020-01-08 17:07:32 -05:00
Fenny 9a5ea6e497 Update Documentation 2020-01-08 16:39:59 -05:00