* 🐛 bug: ClientHelloInfo support for app.Listener
* 🐛 bug: ClientHelloInfo support for app.Listener
* fix
* make tlshandler public
* update
* 🐛 bug: make tlsHandler public to use it with Listener #2034
Co-authored-by: wernerr <rene@gofiber.io>
* fixes#2016 - make IP() and IPs() more reliable
* improve the performance of IP validation functionality
* refactor IP validation and make it a configuration option
* 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>
* Renamed parseQuery to parseParamSquareBrackets
* Added square brackets processing for `application/x-www-form-urlencoded`
* Added test cases for Array of form values
* 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>
Co-authored-by: RW <rene@gofiber.io>
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
* Restore original URL after the proxy
* Use the Immutable string to restore
* Changing deprecated ImmutableString to CopyString
Co-authored-by: Geet Manghnani <gmanghna@in.ibm.com>
* 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
Co-authored-by: RW <rene@gofiber.io>
* feat(ctx): add SessionOnly property on Cookie struct
* feat(middleware/config): add CookieSessionOnly property on middleware Config struct
* feat(csrf): link config CookieSessionOnly with fiber.Cookie in create middleware function
* fix(ctx_test): add tests for SessionOnly cookie in test_ctx_cookie
* fix(readme): update readme in csrf middleware for CookieSessionOnly property
* remove deprecated property from CookieSessionOnly explaination comments
* fiber change
* reference correct storage in SaveFile
* seperate logic to new function
* Change storage defination style, fix tests on go1.14
* Add unit test.
Co-authored-by: Alex Bakker <abakks@hotmail.com>
Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
* ✨feature: Pass all locals to ctx.Render
* add test case for render using locals
* Added option PassLocalsToViews to enable pass locals to render
The option PassLocalsToViews is set to disabled by default
* Added a check to see if the ctx bind already contains the value
* Added a test for ctx render with locals and binds.
* Fix using IP ranges in config.TrustedProxies (#1607)
* Add tests
* Remove debugging var
* Remove tests
* Update test
Co-authored-by: RW <rene@gofiber.io>
* 🔥 add function to overide form decoder setting
🔥 Feature : SetBodyParserDecoder map all option to form decoder, use with BodyParserConfig, BodyParserType
🚨 Test : Test_Ctx_BodyParser_WithSetBodyParserDecoder
* 🔥 Use decoder builder function with default setting on init decoderPool
* ♻️ rename SetBodyParserDecoder to SetParserDecoder
BodyParserType > ParserType
bodyParserConfig > parserConfig
BodyParserConfig > ParserConfig
* 🔥 add function to overide form decoder setting
🔥 Feature : SetBodyParserDecoder map all option to form decoder, use with BodyParserConfig, BodyParserType
🚨 Test : Test_Ctx_BodyParser_WithSetBodyParserDecoder
* 🔥 Use decoder builder function with default setting on init decoderPool
* existing tests clean up
* concurrent test for UserContext Reused
* comment on Ctx.userContext field
* userContext tests edited & fixed, userContext field removed, constant of userContextKey defined
* Add c.Addr() and c.Port() functions and logger port variable
* Add gofmt suggestion, README.md description and test
* Remove c.Addr() func and use c.fasthttp.RemoteAddr() instead
* fix some old browsers cann't set the cookie if it contains SameSite property.
* add "SameSite" attribute constants and test case.
Co-authored-by: wangjiangao <wangjiangao@360.cn>
* Added decompression cases for Body function
* Fixed signature of Body() function
* Removed regex, added Header.Peek
* Added test case with compression
* Added Benchmark, moved compression names to helpers and made them constants
* Added long brotli as a constant
* Update ctx.go
improve Body function
* Update ctx.go
improve performance
* Fixed formatting
* Update helpers.go
Co-authored-by: RW <rene@gofiber.io>