3247 Commits

Author SHA1 Message Date
Thomas
2edcf95f57
update: tls.ClientHelloInfo in Ctx (#2011)
* Update go.mod

* wip

* wip

* wip

* wip

* wip

* Move tlsHandler from Config to App

* Use NewError instead of panic

* Add a test with ServerName

* Add some tests on ClientHelloInfo

* fix missing import

* remove unnecessary ctx field.

Co-authored-by: RW <rene@gofiber.io>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
2022-08-19 08:19:22 +02:00
RW
f031e08d18
prepare release 2.37.0-rc.1 v2.37.0-rc.1 2022-08-18 16:29:52 +02:00
dependabot[bot]
648e662cc5
Bump github.com/valyala/fasthttp from 1.38.0 to 1.39.0 (#2017)
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.38.0 to 1.39.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.38.0...v1.39.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 13:26:39 +02:00
M. Efe Çetin
aa4d2c3f65
📝 docs: make Hooks public (#2015) 2022-08-16 08:13:38 +02:00
M. Efe Çetin
2517944c80
feature: route constraints (#1998)
* Segment parameters constraints and determining it's type

* add parsing for constraints.

* fix tests

* add tests, benchs & some fixes.

* fix regex & datetime tests.

* clean up constraint parser, multiple constraint support.

* update

* regex customization.

* constants, remove variadic methods.

* add some benchs, refactor constraint check funtion.

* more readable conditions

* fix tests

* precompile regex

* precompile regex when parsing the route

* update comments
Co-authored-by: wernerr <rene@gofiber.io>

Co-authored-by: Mohab Abd El-Dayem <mohab.m.mohamed@gmail.com>
Co-authored-by: RW <rene@gofiber.io>
2022-08-16 08:05:50 +02:00
M. Efe Çetin
95abdacba0
feature: add XML to context. (#2003)
*  feature: add XML to context.

* Update app.go
2022-08-16 08:05:35 +02:00
M. Efe Çetin
6669ec4486
📝 docs: gofmt & add missing copyright texts (#2013) 2022-08-15 20:25:26 +02:00
Jinquan Wang
e8a2ba363c
🐛 bug: fix proxy overwrote the wrong scheme (#2004)
* 🐛 bug: fix proxy overwrote the wrong scheme

*  fix: fix io not exist in go1.14
2022-08-09 16:14:41 +02:00
Trim21
e5eb8d3c98
fix infinitely app.Test (#1997)
* diff

* better code

* err message

* code style

* up

* fix type error

* use time.Timer
2022-08-08 08:18:57 +02:00
Muhammed Efe Çetin
9c6c7da4e4
🐛 bug: add forgotten overriding for white color 2022-08-04 20:43:07 +03:00
Muhammed Efe Çetin
5bc1871205
📝 ci: fix CoC links on issue templates 2022-08-04 20:41:17 +03:00
M. Efe Çetin
9761f4e797
🐛 bug: fix gopsutil when compiling for bsd. (#1995) 2022-08-03 16:03:17 +02:00
RW
97ba1d16d5
Update benchmark.yml 2022-08-03 14:35:47 +02:00
wernerr
3552136805 reduce duplicated tests run actions 2022-08-03 13:12:47 +02:00
wernerr
96b4db17c6 reduce duplicated tests run actions 2022-08-03 13:03:06 +02:00
M. Efe Çetin
fb780a01d0
ci: add go 1.19 to tests (#1994)
* ci: add go 1.19 to tests

* change test runner versions
skip it for 1.15, 1.17, 1.18

Co-authored-by: wernerr <rene@gofiber.io>
2022-08-03 11:07:21 +02:00
Maxi_Mega
4f7816774b
🎨 Add black colors to default overriding function (#1993)
* Fix padding around app name in startup message when it contains non-ascii characters

* fix conflict, allow ending space only for odd length strings

* move startup message tests to listen_test.go

* add black color to defaultColors overriding function, fix (again) padding in startupMessage
2022-08-02 14:23:14 +02:00
wernerr
1cca495c7b try to stabilize Test_Test_Timeout v2.36.0 2022-08-02 08:31:22 +02:00
RW
7108b444e3
prepare release v2.36.0 2022-08-02 08:11:35 +02:00
RW
c59370f47a
prepare release v2.36.0 2022-08-02 08:09:08 +02:00
Maxi_Mega
e49880c5d6
🎨 Fix padding around app name in startup message when containing non-ascii characters (#1987)
* Fix padding around app name in startup message when it contains non-ascii characters

* fix conflict, allow ending space only for odd length strings

* move startup message tests to listen_test.go
2022-08-01 13:16:49 +03:00
とーふとふ
43133bec43
🔥 Add OnPrefork Hooks so you can get the PID of the child process. (#1974) 2022-08-01 08:25:56 +02:00
M. Efe Çetin
4103f9463d
feature: customizable colors (#1977)
*  feature: customizable colors

*  feature: customizable colors

*  feature: customizable colors
2022-08-01 08:24:37 +02:00
RW
ff1e0109a3
Closes #1931 "🤗 How to get path param before a custom verb?" (#1983)
* Add possibility for parameters before custom verb
FIX for "🤗 How to get path param before a custom verb? #1931"

* try to stabilize the tests
2022-07-27 08:37:03 +02:00
Raden Mohamad Rishwan
ad89ba4e1c
fix README_it.md (#1980) 2022-07-21 17:46:01 +03:00
RW
2a2337d83e
prepare release v2.35.0 v2.35.0 2022-07-06 12:51:08 +02:00
olongfen
bad7001570
binds the param string to a struct use params tag (#1968)
* add: params parse

* fix: binds the param string to a struct use params tag
2022-07-06 12:42:54 +02:00
olongfen
dfa24a0958
add: params parse (#1964) 2022-07-05 13:45:11 +02:00
Majid Taheri(I love optimization)
744e4da3ef
add some parameters to config for supporting #1936 (#1956)
* add some parameters to config for supporting #1936

* remove go:embed

* apply code review  - 1956#issuecomment-1169811117

* lint

Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
2022-07-05 13:34:32 +02:00
M. Efe Çetin
29be2338e8
♻️ refactor: default error handler & example (#1941)
* ♻️ refactor: default error handler & example

* ♻️ refactor: default error handler & example
2022-07-04 09:15:17 +02:00
marcelogamba
e58ad6b69a
TagLatency doesn't have consistence format between default and custom format (#1943)
Co-authored-by: Marcelo Gamba <gamba@itstransdata.com>
2022-07-04 09:14:57 +02:00
M. Efe Çetin
dac929fdee
🧹 client: remove beta warning (#1951)
* 🧹 client: remove beta warning

* Stabilize the Test_Test_Timeout unittest

Co-authored-by: wernerr <rene@gofiber.io>
2022-07-04 07:50:37 +02:00
M. Efe Çetin
b6818c20be
📝 docs: new issue templates (#1945)
* 📝 docs: new issue templates

* 📝 docs: new issue templates

* 📝 docs: new issue templates

* 📝 docs: new issue templates

* 📝 docs: new issue templates
2022-07-04 07:49:57 +02:00
dependabot[bot]
a337e95463
Bump github.com/valyala/fasthttp from 1.37.0 to 1.38.0 (#1948)
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.37.0 to 1.38.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.37.0...v1.38.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-04 07:43:03 +02:00
John Li
41d31a0190
fix middleware/session update cookie. (#1960) 2022-07-02 13:02:41 +02:00
naoki kuroda
b8b5c8afed
delete a blank line (#1961) 2022-07-02 11:32:09 +03:00
M. Efe Çetin
ab3874c634
📝 docs: translate some lines to turkish (#1954) 2022-06-29 12:41:33 +03:00
hamidreza ghahremani
83d8761222
Update README_fa.md (#1953) 2022-06-29 11:47:01 +03:00
M. Efe Çetin
002d9b5db4
📝 docs: flat-square style for readme badges (#1949) 2022-06-29 07:54:34 +02:00
M. Efe Çetin
43aa457b97
👷 ci: actions for MacOS (#1911)
* 👷 ci: actions for MacOS

* Cache golang modules

* update
2022-06-14 15:10:33 +02:00
RW
b1c3b43f7b
Prepare release 2.34.1 v2.34.1 2022-06-14 08:01:06 +02:00
João Vitor
4d65e88a2c
Spliting dump request to add Query (#1909)
Spliting []dump into dumps, and editing the dump[1] to = req.URL.String(), so we can tests itens that depends on querys from the request.
2022-06-12 18:33:01 +02:00
Sujit Baniya
3bb4b7ed41
Fix GetLocationFromRoute bug for optional params (#1922)
* Add Global Layout for view render

* Add test case for Views Layout

* Update ctx_test.go

* Add App Name function to pass custom app name

* Remove json tag for function

* Change func to string

* Add test for AppName

* Add RedirectToRoute and RedirectBack with fallback if referer in header not found

* replace errors.New with fmt.Errorf

* simplified code

* Add tests for different formats

* Add method to get route location and add benchmarks

* Add ToString function

* Fix error

* rearrange case for fmt.Stringer

* Fix bug for error return

* Lock latest route for app.Name(namee string)

* decreasing timeout for client test with timeout

* remove println and adjust condition to > 0

* Change name to get route url

* Change name to get route url

* Update ctx.go

Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>

* Fix bug on getting url for optional and greedy params

* Fix greedy pattern

* This PR will fix #1921 (comment).

The optional and greedy params were not fetched correctly

* This PR will fix #1921 (comment).

The optional and greedy params were not fetched correctly

* This PR will fix #1921 (comment).

The optional and greedy params were not fetched correctly

Co-authored-by: RW <rene@gofiber.io>
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
2022-05-31 13:58:13 +02:00
Viktor Persson
68e922d733
Refactor favicon middleware, avoid magic numbers. (#1919)
* Refactor favicon middleware, avoid magic numbers.

* Introduce constant for path to favicon.
2022-05-28 21:35:49 +02:00
Artem Avanesov
061c2a9e12
fix typo for paramsInt function (#1913) 2022-05-24 02:05:55 +02:00
RW
deb02cb64e
add caching for tests v2.34.0 2022-05-23 09:13:49 +02:00
RW
c541ec1cb8
prepare release 2.34.0 2022-05-23 09:09:52 +02:00
RW
b31c1756a0
prepare pre-release 2.34.0-rc.1 v2.34.0-rc.1 2022-05-18 08:44:48 +02:00
dependabot[bot]
bf0673eb95
Bump github.com/valyala/fasthttp from 1.35.0 to 1.37.0 (#1882)
* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0

Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.35.0 to 1.36.0.
- [Release notes](https://github.com/valyala/fasthttp/releases)
- [Commits](https://github.com/valyala/fasthttp/compare/v1.35.0...v1.36.0)

---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0 #1882

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0 #1882

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0 #1882

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0 #1882

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.36.0 #1882

* Bump github.com/valyala/fasthttp from 1.35.0 to 1.37.0 #1882

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wernerr <rene@gofiber.io>
2022-05-18 08:16:19 +02:00
Serhat Şevki Dinçer
0fdd7df0f9
📊 add refresh period to monitor mw (#1898) 2022-05-16 08:15:47 +02:00