Gerasimos (Makis) Maropoulos
5994fd5d4e
New iris.WithKeepAlive(time.Duration) Configurator is added as a helper to enable TCP listener featured with keep-alive
2021-01-31 21:24:15 +02:00
Gerasimos (Makis) Maropoulos
ce25e698f8
minor
2021-01-27 04:09:46 +02:00
Gerasimos (Makis) Maropoulos
f7757c0793
fix https://github.com/kataras/iris/issues/1713 and add a simple usage example of the 'RemoveHandler'
2021-01-27 01:22:20 +02:00
Gerasimos (Makis) Maropoulos
197df1ef64
minor (see previous commit)
2021-01-24 23:49:37 +02:00
Gerasimos (Makis) Maropoulos
53b3ade7e0
New feature: Context.ReadJSONStream
2021-01-24 23:34:01 +02:00
Gerasimos (Makis) Maropoulos
435f284815
New feature: Fallback views. Read HISTORY.md
2021-01-24 14:08:37 +02:00
Gerasimos (Makis) Maropoulos
8aedf6bc32
:)
2021-01-09 05:41:20 +02:00
Gerasimos (Makis) Maropoulos
387eac8672
Merge branch 'master' into master
2021-01-09 03:37:54 +02:00
Shubhendra Singh Chauhan
8ab500bd6c
fixed code quality issues using DeepSource
...
* Combine multiple `append`s into a single call
* Remove unnecessary use of slice
* Replace `strings.Index` with `strings.Contains`
* Added .deepsource.toml config file for DeepSource integration
2021-01-06 16:36:10 +05:30
Gerasimos (Makis) Maropoulos
b409f7807e
New feature: versioning.Aliases
...
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
2021-01-06 01:52:39 +02:00
Gerasimos (Makis) Maropoulos
8fef8fd04c
context.UploadFormFiles: security fix
2020-12-27 13:23:14 +02:00
Jyny C.Y. Chen
8ec1c14a1a
fix: index of ReadJSONProtobuf options
2020-12-08 22:59:33 +08:00
Gerasimos (Makis) Maropoulos
82c5dfea50
fix #1681
2020-11-25 16:59:01 +02:00
Gerasimos (Makis) Maropoulos
11e21150d0
more features and fix database/mysql:jwt example
2020-11-24 14:58:02 +02:00
Gerasimos (Makis) Maropoulos
4d857ac53f
New basic auth middleware and GetRaw on User (godocs missing)
2020-11-21 12:04:37 +02:00
Gerasimos (Makis) Maropoulos
3d59d19de6
add context partial user helper and accept a generic interface on SetUser - the same method now returns an error if the given value does not complete at least one method of the User interface
2020-10-31 15:47:28 +02:00
Gerasimos (Makis) Maropoulos
d517f36a29
minor commit. But I am not happy with the jwt implementations for Go...they seem to produce enough performance cost, will try to make a jwt parser by myself and see the difference
2020-10-19 10:05:48 +03:00
Gerasimos (Makis) Maropoulos
83462d2999
minor: godoc: remove invalid comment
2020-10-18 19:39:31 +03:00
Gerasimos (Makis) Maropoulos
7ab51805ba
add an example for #1659
2020-10-18 19:37:33 +03:00
Gerasimos (Makis) Maropoulos
637f7aeea7
add context.ReadURL - relative to #1659
2020-10-18 19:26:43 +03:00
Gerasimos (Makis) Maropoulos
0d73b63b28
jwt: add the (last) helper: VerifyRefreshToken
2020-10-18 17:15:29 +03:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
...
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
8e51a296b9
Add Context.SetUser and Context.User methods
...
relative to: https://github.com/iris-contrib/middleware/issues/63
2020-10-12 15:52:53 +03:00
Gerasimos (Makis) Maropoulos
f6905a3f79
New Context.SetLogoutFunc/Logout and SetFunc/CallFunc methods
...
Read HISTORY.md
2020-10-12 02:07:04 +03:00
Gerasimos (Makis) Maropoulos
5017e3c986
i18n: respect fallback language when Strict is false and no DefaultMessageFunc was provided
2020-09-30 10:36:25 +03:00
Gerasimos (Makis) Maropoulos
4065819688
New: i18n pluralization and variables support and more...
...
fixes : #1649 , #1648 , #1641 , #1650
relative to: #1597
2020-09-29 19:19:19 +03:00
aa1143
7c1502bf04
add check the values array length, avoid panic: index out of range
2020-09-23 21:52:29 +08:00
Gerasimos (Makis) Maropoulos
a04a6b5011
add accesslog+proxy example
2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
373b8993ad
add viper configuration example and minor improvements - read HISTORY.md
2020-09-16 12:59:51 +03:00
Gerasimos (Makis) Maropoulos
2bb04823b0
recover, accesslog middlewares: give more information to the stored error, accesslog: make use of that information and introduce panic log levels
...
relative to: https://github.com/kataras/iris/issues/1601#issuecomment-690541789
2020-09-10 21:03:34 +03:00
Gerasimos (Makis) Maropoulos
b17217444e
add IsDebug() shortcut method
2020-09-10 16:20:19 +03:00
Gerasimos (Makis) Maropoulos
ae67987f55
accesslog: log error bodies and communicate with the recover middleware
2020-09-10 14:47:14 +03:00
Gerasimos (Makis) Maropoulos
b77227a0f9
accesslog: NEW log broker and many more features
...
some fixes about context clone, fix response recorder concurrent access, fix reload views with only ParseTemplate and more
2020-09-09 14:43:26 +03:00
Gerasimos (Makis) Maropoulos
d6867e1f9e
accesslog middleware: add total bytes received and sent
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-08 13:44:50 +03:00
Gerasimos (Makis) Maropoulos
4c6568b874
minor
2020-09-07 14:31:19 +03:00
Gerasimos (Makis) Maropoulos
b063fbf3c8
minor (see previous commit)
2020-09-07 11:53:16 +03:00
Gerasimos (Makis) Maropoulos
4dca8f6088
improvements on the new accesslog middleware
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 06:12:45 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c
add accesslog middleware (rel: #1601 )
2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
fec6783a22
examples: write-rest: json: usage of the Secure, ASCII and UnescapeHTML fields
2020-09-01 13:28:21 +03:00
Gerasimos (Makis) Maropoulos
dbeb7bfb73
add Context.ReadHeaders
2020-08-31 21:28:13 +03:00
Gerasimos (Makis) Maropoulos
477f5e6f9b
add Context.ReadParams method
2020-08-31 20:30:01 +03:00
Gerasimos (Makis) Maropoulos
8d99b46801
minor improvements
2020-08-31 09:40:27 +03:00
Gerasimos (Makis) Maropoulos
5700690dea
minor
2020-08-31 05:09:59 +03:00
Gerasimos (Makis) Maropoulos
d0a27d2c08
add a simple URLParamSlice
...
I would love to change the current URLParams() to URLParams(name string) []string to match the PostValues(name string) []string, error but that would be a big breaking changes to many servers... so stick with it.
2020-08-31 05:07:55 +03:00
Gerasimos (Makis) Maropoulos
77ce225c2f
minor: update xorm example based on chat comments (they moved repository)
2020-08-30 17:59:14 +03:00
Gerasimos (Makis) Maropoulos
8b28ae14f8
minor: godoc
2020-08-30 17:18:04 +03:00
Gerasimos (Makis) Maropoulos
65e60df44e
revert last commit
2020-08-30 16:19:52 +03:00
Gerasimos (Makis) Maropoulos
6ee69ffd1c
minor: fix Context.ViewData ignored when nil is passed as view data on Context.View method
2020-08-30 16:14:32 +03:00
Gerasimos (Makis) Maropoulos
07f07ecf6c
New Context.PostValueMany. The PostValues method now returns a second output argument of error too
...
relative to: #1609
2020-08-29 17:58:16 +03:00
Gerasimos (Makis) Maropoulos
4035ed308c
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem
2020-08-28 06:21:26 +03:00