Gerasimos (Makis) Maropoulos
85fc0f5dab
add Context.Clone and change the input argument of Context.OnClose and OnCloseConnection ( the un-released Defer has been removed, OnClose can do its job)
...
Former-commit-id: 7b606e285f4b9de24338ea96d482cf1f7c4907a3
2020-07-02 20:31:34 +03:00
Gerasimos (Makis) Maropoulos
134e2531bf
use Request().Context().Done() channel instead of the ResponseWriter().CloseNotify() one
...
Former-commit-id: e380a3624c03faada74c9efc24266679c3ff5e2b
2020-06-29 21:05:12 +03:00
Gerasimos (Makis) Maropoulos
ed5172731c
minor
...
Former-commit-id: 983161656b264289fb664ca4237bf2a9fccbc5da
2020-06-28 23:08:52 +03:00
Gerasimos (Makis) Maropoulos
871b4ef7fc
add Context.ReadJSONProtobuf method
...
Former-commit-id: 9c7f268c0d7be7e405ea97a5ac12257beba3a4f3
2020-06-28 23:05:07 +03:00
Gerasimos (Makis) Maropoulos
7f9e664b90
Option for Socket Sharding as requested at #1544
...
Former-commit-id: 0384baf593012377a94344d647ca41121294285a
2020-06-26 20:29:36 +03:00
Gerasimos (Makis) Maropoulos
878484204e
minor: versioning: Match: store the matched version and revert the last change
...
Former-commit-id: e7aa04671d3f54650bb194a97300b6a89e1b0d2b
2020-06-20 09:39:42 +03:00
Gerasimos (Makis) Maropoulos
311b560717
new feature: versioned controllers
...
Former-commit-id: c797e23c78b1e74bbe9ba56673f3a98f17f5e2f7
2020-06-19 20:58:24 +03:00
Gerasimos (Makis) Maropoulos
43502ed047
minor
...
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
2020-06-18 09:36:47 +03:00
Gerasimos (Makis) Maropoulos
9c739969f0
minor
...
Former-commit-id: ee1b625abe876cad8f0f2801c279da684b539fce
2020-06-14 09:25:19 +03:00
Gerasimos (Makis) Maropoulos
78a45163e3
add 'HostProxyHeaders' Configuration field
...
Former-commit-id: 067360d8db638d6f268d154b50fd872c465eaf1a
2020-06-11 18:52:35 +03:00
Gerasimos (Makis) Maropoulos
d304086c32
add 'Context.IsSSL() bool'
...
Former-commit-id: 494394ecb3a44dc69d95893eae024efff0ff3612
2020-06-11 16:08:35 +03:00
Gerasimos (Makis) Maropoulos
2042637e41
add a rollbar example
...
Former-commit-id: 4cbe61a217f4863fe38e23848252126d864d9f5c
2020-06-09 02:58:17 +03:00
Gerasimos (Makis) Maropoulos
7bb2223226
fix #1531 and introduce the 'Configuration.ResetOnFireErrorCode' (read HISTORY.md)
...
Former-commit-id: 84f1e894378a6dfd94e0bf057f4037e35aee0c4f
2020-06-08 05:16:55 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5
reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
...
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00
Gerasimos (Makis) Maropoulos
1079bb8f8b
add a new 'Context.GzipReader(bool) method and 'iris.GzipReader' middleware as requested at #1528
...
Former-commit-id: 7665545069bf1784d17a9db1e5f9f5f8df4b0c43
2020-05-28 19:29:14 +03:00
Gerasimos (Makis) Maropoulos
9e5672da25
add a new simple, builtin requestid middleware (makes use of the Context.SetID/GetID methods too)
...
Former-commit-id: d46bce7c1964adada01934aa95daf389c141defc
2020-05-28 16:20:58 +03:00
Gerasimos (Makis) Maropoulos
d556cfc39a
New builtin JWT middleware - this one supports encryption and ed25519
...
Former-commit-id: ca20d256b766e3e8717e91de7a3f3b5f213af0bc
2020-05-27 12:02:17 +03:00
Gerasimos (Makis) Maropoulos
c866709acc
add 'Context.Register/RemoveDependency' for registering dependencies for next handler in the chain from a common iris handler in serve-time
...
And also, add a Configuration.FireEmptyFormError if end-dev wants to receive an iris.ErrEmptyForm error on missing form data on 'Context.ReadForm/ReadBody'
Former-commit-id: a2713bec77375b2908f1f066a46be4f19e6b7a61
2020-05-19 09:28:27 +03:00
Gerasimos (Makis) Maropoulos
1e20996330
add 'Configuration.PathIntelligence' and 'OnErrorCode' and 'OnAnyErrorCode' on APIContainer
...
Former-commit-id: bc3d0232106622063205f326bfa4ed3aa84179de
2020-05-17 08:10:07 +03:00
Gerasimos (Makis) Maropoulos
3657aaf240
Minor Context changes
...
Former-commit-id: ff0a759895b322da8d42decd7374f58d3e02498c
2020-05-10 05:10:53 +03:00
Gerasimos (Makis) Maropoulos
221f026491
improvements on cookie options
...
Former-commit-id: f1d5cfc88a33077a9359eaa25b6a20265f5632b5
2020-05-10 02:17:28 +03:00
Gerasimos (Makis) Maropoulos
50b18c7515
enhanced cookie security and management
...
Former-commit-id: a97b0b33e87749a2e8c32e63269fcc60fa326ff3
2020-05-09 14:04:51 +03:00
Gerasimos (Makis) Maropoulos
b6a36bf28d
iris.TLS starts a secondary http redirection server now (like AutoTLS did) and add 'iris.TLSNoRedirect' to disable it (on both TLS and AutoTLS)
...
Former-commit-id: c7a535bf860a67604de3d09ade30599611e096f1
2020-05-08 21:13:12 +03:00
Gerasimos (Makis) Maropoulos
8c470e46a2
mvc controllers and methods: provide mvc.Application automatically
...
Former-commit-id: 991d8e72c3c231813a455dd0680cd8a83b82abb1
2020-05-06 08:00:56 +03:00
Gerasimos (Makis) Maropoulos
d19672115b
add Context.SetVersion helper
...
Former-commit-id: 605d6c1e78f73b8f2c89bd2dc7ee23f21551d47b
2020-05-06 07:17:24 +03:00
Gerasimos (Makis) Maropoulos
20fcfb4110
add a 'Context.SetLanguage', similar to pp.I18n.ExtractFunc but it can be used per-handler
...
relative: https://github.com/kataras/iris/issues/1502#issuecomment-623553034
Former-commit-id: 7e2fadeb60149f43edbb9e220b0274ce1160881b
2020-05-04 19:13:06 +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
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
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
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
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
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
1bb76853a9
.DI() to ConfigureContainer(...builders)
...
Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
2020-04-17 15:56:36 +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
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
6876f94e67
HISTORY.md additions
...
Former-commit-id: d5537f598fb34c669d8d7e6c019eee6f3ce269e8
2020-04-03 22:12:41 +03:00
Gerasimos (Makis) Maropoulos
5da8ff92f3
🚌 next version preparation: new PreflightResult interface for hero handlers
...
Former-commit-id: ea2d7ab93889beaddfe269bd213d259d26df979f
2020-03-02 10:07:44 +02:00
Gerasimos (Makis) Maropoulos
2756435446
🚀 add Party.OnErrorFunc, UseFunc and DoneFunc to be aligned with the new HandleFunc
...
Former-commit-id: 381ce0f86f376ef7652b5e918474f9e37b391781
2020-03-01 07:07:27 +02:00
Gerasimos (Makis) Maropoulos
ce2eae9121
☕ add a dependency-injection examples folder for the next release and some improvements
...
Former-commit-id: 040168afb7caf808618f7da5e68ae8eb01cb7170
2020-03-01 02:17:19 +02:00
Gerasimos (Makis) Maropoulos
5fc24812bc
❤️ awesome and unique features for end-developers are coming...
...
total refactor of the hero and mvc packages, see README#Next (it's not completed yet)
Former-commit-id: b85ae99cbfe5965ba919c1e15cf4989e787982c0
2020-02-29 14:18:15 +02:00
Gerasimos (Makis) Maropoulos
08403f0317
Update to version 12.1.8 - Read HISTORY.md
...
Former-commit-id: d3d30cb15537146e3071731be9d674a5cb59de97
2020-02-16 11:14:35 +02:00
Gerasimos (Makis) Maropoulos
10f280af63
Update to version 12.1.7
...
Former-commit-id: 3e214ab6b6da4d1c6e4a66180a4ccfa61c0879ae
2020-02-10 19:40:17 +02:00