Commit Graph

1772 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
af66e7404f rate: add 'SetIdentifier' and update example
the /x/time/rate package may be replaced with the iris-contrib:master/throttler's one -- we'll see


Former-commit-id: 9d12c7bd997ef4502dc0a7bb93bcb015d9204703
2020-05-03 03:53:43 +03:00
Gerasimos (Makis) Maropoulos
71e9a84442 godoc the (new) rate.Limit middleware
Former-commit-id: fd5b4504ff873b55870b6966851157b8c641e587
2020-05-02 22:21:42 +03:00
Gerasimos (Makis) Maropoulos
dbd6fcd2d7 add Context.SendFileWithRate, ServeFileWithRate and ServeContentWithRate
as requested at: https://github.com/kataras/iris/issues/1493


Former-commit-id: 7783fde04b4247056e6309e7ec1df27f027dc655
2020-05-02 17:46:17 +03:00
Gerasimos (Makis) Maropoulos
1e1d8a4855 minor (see prev commit)
Former-commit-id: 277b7b1517357d6baea98d771b592be2795201a3
2020-05-01 23:37:41 +03:00
Gerasimos (Makis) Maropoulos
3775189de8 New Rate Limit middleware (still WIP though)
Former-commit-id: 99e282e4d400c83a56a808212d812cd701e1bcd8
2020-05-01 23:33:04 +03:00
Gerasimos (Makis) Maropoulos
f667bc5ff3 HISTORY.md: example of the new Dependency Injection features
Former-commit-id: 94294ffa96fafeb133b129f6f59c813d73ed05f1
2020-04-30 22:50:49 +03:00
Gerasimos (Makis) Maropoulos
c3543528cf fix: https://github.com/kataras/i18n/issues/1
Former-commit-id: 12b75f1e54ebf3d7f78a09b8d5594859a344422d
2020-04-30 16:16:43 +03:00
Gerasimos (Makis) Maropoulos
3fbf15d576 REAMDE: add French translation link
Former-commit-id: 59657a03dff359a117ae9006bed428dd07e72b42
2020-04-29 21:59:36 +03:00
Gerasimos (Makis) Maropoulos
fd7c076c67 Merge pull request #1501 from Natnatf/readme-french-traduction
French version of readme writen

Former-commit-id: 5938174414b1c767dfee0f5a1160e8bf2b432d44
2020-04-29 21:24:52 +03:00
Gerasimos (Makis) Maropoulos
714e84b597 apply https://github.com/kataras/iris/issues/1500
Former-commit-id: 2b5ae1857a5815977507b6b8fc72dd0040d470ca
2020-04-29 21:16:43 +03:00
Nathan
8fbc074c56 French version of readme writen
Former-commit-id: e6e8a4c97c86467482ee23c512965b34d461d839
2020-04-29 19:43:26 +02:00
Gerasimos (Makis) Maropoulos
ac08f53ba0 minor
Former-commit-id: d4eebea0b5849c574e2ffd4b0bb36e4380b14111
2020-04-29 05:50:29 +03:00
Gerasimos (Makis) Maropoulos
2a4043a3c2 more route info improvements
Former-commit-id: ccbe95de0badb1bf448fcc443cecda60772716dc
2020-04-28 22:34:36 +03:00
Gerasimos (Makis) Maropoulos
128cd255cb update kataras/neffos dependency
Former-commit-id: bd06645fa9ab7774d9dfd7837dddd6217b14b08c
2020-04-28 06:07:42 +03:00
Gerasimos (Makis) Maropoulos
ac7fac35be update dependencies
Former-commit-id: 95cc5cf2628490e865d6414ab2d8661e803ea05f
2020-04-28 05:51:28 +03:00
Gerasimos (Makis) Maropoulos
c366c34644 add human-friendly middleware names on route debugging (see HISTORY.md#Next)
Former-commit-id: f7291c4a077c4d1573344c93ba8a153fede18795
2020-04-28 05:42:23 +03:00
Gerasimos (Makis) Maropoulos
b657c5e6af don't fire ErrServerClosed on manually interrupt signals (CTRL/CMD+C)
Former-commit-id: 673c84dd13bb99c0926aa1b4a6b4eff9745403d8
2020-04-28 05:22:58 +03:00
Gerasimos (Makis) Maropoulos
27ca1c93f5 logging: several improvements
Former-commit-id: 12538c74a1aa55314c35ac3cf2665646b704851d
2020-04-28 01:58:56 +03:00
Gerasimos (Makis) Maropoulos
b02706f207 Merge pull request #1496 from bestgopher/update
modify:add stringToBytes
Former-commit-id: fc34eb51edc1460f1e44107902698aa9f89c8d42
2020-04-27 17:35:44 +03:00
bestgopher
4e68a382b7 modify:add stringToBytes
Former-commit-id: 471bb65ed19ca1fa07f77575e9f11bf0e6fbbec8
2020-04-27 22:25:53 +08:00
Gerasimos (Makis) Maropoulos
d1f18501e8 add a way to customize the handler names (recommended: before server execution) so route logging can be more human-friendly on handlers like standard iris middlewares, e.g. request logger
Former-commit-id: 039c233f2d4da0d52b1d6fc86b6d73be14b15608
2020-04-27 15:48:09 +03:00
Gerasimos (Makis) Maropoulos
f75ec4e67c change the JS MIME to text/javascript instead of application/javascript as https://github.com/golang/go/issues/32351
Former-commit-id: 761be7901fff65ef0ca6e3ea4339ff59f569cf75
2020-04-27 12:28:30 +03:00
Gerasimos (Makis) Maropoulos
346ca2a219 route logging improvement: group by methods
Former-commit-id: ad884991433a244dc76bdad7314d98a5c204dac6
2020-04-26 17:51:27 +03:00
Gerasimos (Makis) Maropoulos
66e641513c more route logging improvements, see the parent commit
Former-commit-id: 973167e3ca7b3463f79ec62ab8be6770727f1c2b
2020-04-26 17:23:38 +03:00
Gerasimos (Makis) Maropoulos
77a79cae58 improve route debug info, see HISTORY.md
Former-commit-id: ae245bae5fefa57c5f7663f7d1d661ec68ad366a
2020-04-26 06:21:20 +03:00
Gerasimos (Makis) Maropoulos
5d3c96947c New: gRPC MVC features, new WithLowercaseRouting option and add some new context methods
read HISTORY.md


Former-commit-id: 30a16cceb11f754aa32923058abeda1e736350e7
2020-04-25 02:30:19 +03:00
Gerasimos (Makis) Maropoulos
0cf5d5a4a3 minor
Former-commit-id: 85c8b1e20da6e39485478025ef1b0f80ef953e4a
2020-04-21 09:27:28 +03:00
Gerasimos (Makis) Maropoulos
6c6de6b85d improve remote addr parsing as requested at: https://github.com/kataras/iris/issues/1453
Former-commit-id: e5fde988eda9bf582b04285a1c77ba123910a699
2020-04-20 10:43:45 +03:00
Gerasimos (Makis) Maropoulos
c5392ede6a remove the 'typescript' package entirely in favor of iris-cli and because the alm editor was deprecated by its author (consider using the designtsx.com instead)
Former-commit-id: 52888ae3fd0da9e5b98e095c665a1a538381ddef
2020-04-19 16:47:15 +03:00
Gerasimos (Makis) Maropoulos
340664dca9 add test for hero/Container.UseResultHandler
Former-commit-id: 8954541f8da055f30965cce07a85f485580fee48
2020-04-19 12:05:22 +03:00
Gerasimos (Makis) Maropoulos
dcf02480b3 Implement ResultHandler as requested at: https://github.com/kataras/iris/issues/1465
Former-commit-id: 9d76c2f00766afd53cf6e591c25f861f179dd817
2020-04-18 22:40:47 +03:00
Gerasimos (Makis) Maropoulos
68c5883bce add a test for https://github.com/kataras/iris/issues/1488
Former-commit-id: aabb01dda7fbbc708bb2ae98a4589d14ae2fc640
2020-04-17 17:54:00 +03:00
Gerasimos (Makis) Maropoulos
c0e6f9e4d9 add a test for controller.GetBy-only method... it passes as expected https://github.com/kataras/iris/issues/1487
Former-commit-id: 5f4abd4a8c6528d666d91315fa515a4a607326fc
2020-04-17 16:03:11 +03:00
Gerasimos (Makis) Maropoulos
1bb76853a9 .DI() to ConfigureContainer(...builders)
Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
2020-04-17 15:56:36 +03:00
Gerasimos (Makis) Maropoulos
eafa63da50 add hCaptcha middleware and example and memstore json struct tags
Former-commit-id: 31e4f68429e354c9130ebcf3829683a6d52e4492
2020-04-14 02:22:57 +03:00
Gerasimos (Makis) Maropoulos
a1e6d81b49 add access to the session manager through new 'Session.Man' field
relative to: https://github.com/kataras/iris/issues/1485


Former-commit-id: c4ced38b74af42bfcd17abe6b439b35db6837bbf
2020-04-13 22:15:55 +03:00
Gerasimos (Makis) Maropoulos
486e57b9ae gofmt
Former-commit-id: 23590c343ae9d351f3bed0a64487bb31c58f0dba
2020-04-13 10:03:40 +03:00
Gerasimos (Makis) Maropoulos
629ae3c688 minor: sessions testing: fix travis by using InRange for cookie's MaxAge
Former-commit-id: a1d6096aec0d716539e1b4b35547c7b3f05bbd3f
2020-04-13 10:01:51 +03:00
Gerasimos (Makis) Maropoulos
989ac436e8 fix https://github.com/kataras/iris/issues/1485 by adding and using the new 'context.UpsertCookie' instead of 'context.SetCookie'
Former-commit-id: 31a50e580929616504b9bbbb1d602b0e9274a568
2020-04-13 09:27:49 +03:00
Gerasimos (Makis) Maropoulos
e1d3cad905 add test for sessions.UpdateExpiration
Former-commit-id: fe80e61981dfac925eebe472d56641d9c3543b31
2020-04-13 07:11:41 +03:00
Gerasimos (Makis) Maropoulos
6432e34151 typo fix on recaptcha middleware...
Former-commit-id: 214c56fcd84c86742175e37185e130eeae85f07f
2020-04-11 20:23:02 +03:00
Gerasimos (Makis) Maropoulos
e9b10b14a3 add read-body example
Former-commit-id: 7d7afa555e66fbe7edfa31203c26b4b550f336f4
2020-04-11 00:55:31 +03:00
Gerasimos (Makis) Maropoulos
978718454a add 'context.StopWithStatus, StopWithJSON, StopWithProblem' and update the json-struct-validation example
Former-commit-id: dd0347f22324ef4913be284082b8afc6229206a8
2020-04-10 06:04:46 +03:00
Gerasimos (Makis) Maropoulos
ad154ea479 add 'app.Validator' field for ReadJSON, ReadXML, ReadMsgPack, ReadYAML, ReadForm, ReadQuery data validation, defaults to empty but can be set-ed to 3rd-party packages
Former-commit-id: e42d9be5928edcdaad4579c008f741b1a7d97da9
2020-04-09 19:02:08 +03:00
Gerasimos (Makis) Maropoulos
1b02f048ef new 'Party.DI()' method to return the Party's instance of the new 'APIBuilderDI' and move the DI-relative Router to this new APIBuilderDI
Former-commit-id: 2fb81406c6e3162991c90e0918a3cac1b77c2b54
2020-04-08 20:04:56 +03:00
Gerasimos (Makis) Maropoulos
5852327f30 move the hero binding logic to the new 'context.ReadBody'
Former-commit-id: d336bb1ec6ca66087fe9e8d28b38062508b45227
2020-04-08 17:27:23 +03:00
Gerasimos (Makis) Maropoulos
837787104b add context.Protobuf, MsgPack, ReadProtobuf, ReadMsgPack methods
Former-commit-id: 39d547ecfb1516505a1eb76a12a1f6e9e4111962
2020-04-08 16:48:22 +03:00
Gerasimos (Makis) Maropoulos
ee4213f72d update example for validator v10 (go module)
Former-commit-id: dcd729ea0dc6775ca657db2950d2bda5d21388c1
2020-04-07 19:27:49 +03:00
Gerasimos (Makis) Maropoulos
f03afeef2f add Context.SetSameSite(integrates with sessions too) , iris.JSON.ASCII and iris.JSON.Secure option fields
Former-commit-id: fdf0dae234b219c9ca449ae8907d3e459d485dc7
2020-04-07 19:23:30 +03:00
Gerasimos (Makis) Maropoulos
6876f94e67 HISTORY.md additions
Former-commit-id: d5537f598fb34c669d8d7e6c019eee6f3ce269e8
2020-04-03 22:12:41 +03:00