Gerasimos (Makis) Maropoulos
baeff3e80b
DirOptions.PushTargets: add example for https://github.com/kataras/iris/issues/1562
...
Former-commit-id: 940f07fdb1184266dc315441fb91afa5754092fa
2020-07-16 11:42:45 +03:00
Gerasimos (Makis) Maropoulos
fba8492e78
add 'DirOptions.PushTargets' for http/2 push on index(es) - #1562
...
Former-commit-id: 5a3f626ba0fbcf10be979b5a800eba51e88602cd
2020-07-16 08:03:55 +03:00
Gerasimos (Makis) Maropoulos
0f113dfcda
( #1554 ) Add support for all common compressions (write and read)
...
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation
Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
Gerasimos (Makis) Maropoulos
57dc64625d
file-server: fix ShowList on root dir
...
Former-commit-id: 6795382235d76942bcfd31ecc0b4ab02ecb85a8a
2020-07-05 05:39:48 +03:00
Gerasimos (Makis) Maropoulos
8c3e43df7f
minor
...
Former-commit-id: 4c71a275f3e10dd0ce77bf5723c370be765663ab
2020-07-03 13:48:34 +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
836e641229
minor
...
Former-commit-id: 0bc9c92c519edda9e04be8481e16fd2fdcfc74c0
2020-06-25 13:04:36 +03:00
Gerasimos (Makis) Maropoulos
d55bb34766
add a new 'overview' MVC example
...
Former-commit-id: f73cbf6010595c639f6c5b5119e2ec41bc9802a5
2020-06-21 00:12:07 +03:00
Gerasimos (Makis) Maropoulos
45c6bce15f
fix https://github.com/kataras/iris/issues/1542
...
Former-commit-id: 23f795a6b6b64745311d0630d8e630edc3f65244
2020-06-20 16:06:26 +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
6557dcf6c5
add route-handlers-execution-rules example
...
Former-commit-id: 95e3dfad33b98d20b761ea1d06dee8df91c3632d
2020-06-17 00:02:09 +03:00
Gerasimos (Makis) Maropoulos
05ae7792df
add a rs/cors full example
...
Former-commit-id: 9655e04b91145f60e69096cbd662fef08a91f988
2020-06-09 22:12:11 +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
791fd7ac3d
minor: fix two broken example links
...
Former-commit-id: 4b102ed9e2b3e78b133d00f253eac86d66a77b6e
2020-06-07 15:47:02 +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
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
221f026491
improvements on cookie options
...
Former-commit-id: f1d5cfc88a33077a9359eaa25b6a20265f5632b5
2020-05-10 02:17:28 +03:00
Gerasimos (Makis) Maropoulos
cd62ba3712
organise sessions examples
...
Former-commit-id: 682472d2cf4ebfc740687522fe5eef77b5bb1a72
2020-05-07 07:34:17 +03:00
Gerasimos (Makis) Maropoulos
ffc493a0b9
add authenticated-controller example - proof of concept
...
Former-commit-id: 7a15da2bd966f2a699337cd494af8b5d1877b11d
2020-05-06 04:45:12 +03:00
Gerasimos (Makis) Maropoulos
47075a82e9
fix an idiot typo
...
Former-commit-id: 3b493bedb38641c84e19c3b53d6bd0b273cc9d81
2020-05-05 22:07:56 +03:00
Gerasimos (Makis) Maropoulos
cc19f80049
update some examples
...
Former-commit-id: 2ed7c323dd379eb68d5ccb2044cd9cc772ce0b08
2020-05-05 22:03:01 +03:00
Gerasimos (Makis) Maropoulos
c10dd32ad7
new simple _examples/README.md, wiki should live only inside kataras/iris/wiki and the provided e-book
...
Former-commit-id: 350eafb0f70f8433e394e103ff93fa332ee00a05
2020-05-05 16:03:19 +03:00
Gerasimos (Makis) Maropoulos
67e47215cd
add permissions example
...
Former-commit-id: e786bdb991ab88bff275203f2c24ff72a9d0c522
2020-05-04 07:28:23 +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
3775189de8
New Rate Limit middleware (still WIP though)
...
Former-commit-id: 99e282e4d400c83a56a808212d812cd701e1bcd8
2020-05-01 23:33:04 +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
e9b10b14a3
add read-body example
...
Former-commit-id: 7d7afa555e66fbe7edfa31203c26b4b550f336f4
2020-04-11 00:55:31 +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
837787104b
add context.Protobuf, MsgPack, ReadProtobuf, ReadMsgPack methods
...
Former-commit-id: 39d547ecfb1516505a1eb76a12a1f6e9e4111962
2020-04-08 16:48:22 +03:00
Gerasimos (Makis) Maropoulos
409f83ca66
ℹ️ add mvc 'ByWildcard' example as requested at #1459
...
Although, we already had a usage of this as a test at mvc/controller_test.go#testControllerRelPathFromFunc
Former-commit-id: 66343933aa86750615ab89767f149f6636d03be7
2020-03-02 20:11:44 +02: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
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
09a410c6cb
example: gRPC-compatible controller
...
as requested at: https://github.com/kataras/iris/issues/1449
Former-commit-id: a0af1a78bcfef85f297c5087c8cbb00124226036
2020-02-12 19:27:11 +02:00
Gerasimos (Makis) Maropoulos
10f280af63
Update to version 12.1.7
...
Former-commit-id: 3e214ab6b6da4d1c6e4a66180a4ccfa61c0879ae
2020-02-10 19:40:17 +02:00
Gerasimos (Makis) Maropoulos
ea589b1276
minor
...
Former-commit-id: 491a1001aff9fc63a0d79efbfee6a78ca711f07c
2020-02-08 13:41:09 +02:00
Gerasimos (Makis) Maropoulos
c55d2063e1
add a simple docker example
...
Former-commit-id: cacfa3ad903ce542ce455cb2298c40639c645d3c
2020-02-06 18:43:03 +02:00
Roberto Civille Rodrigues
2c337e23ed
WebAssembly spelling
...
Former-commit-id: e355f300cb9fbee5038dd9c3cdad9726b557cebb
2020-01-17 15:19:14 -03:00
Gerasimos (Makis) Maropoulos
a3f944b884
Add context.FindClosest(n) to find closest paths - useful for 404 pages to suggest valid pages
...
Former-commit-id: 90ff7c9da5369df5bd99fbbecf9955a8c555fea5
2019-12-16 02:00:42 +02:00
Gerasimos (Makis) Maropoulos
04477c3e41
fixes, i18n, sitemap generator and new examples
...
Former-commit-id: 54801dc705ee0fa66232f65063f8a68c9cc31921
2019-12-13 23:06:18 +02:00
Gerasimos (Makis) Maropoulos
a7635afe62
add experimental handlers examples
...
Former-commit-id: 8d8a0d15afce2554dc5926f6b9bd9c42cb95dad0
2019-08-16 16:57:03 +03:00
Gerasimos (Makis) Maropoulos
416324cc42
push version 11.2.4
...
Former-commit-id: 3451c700c02aa98d7c3f02b305c381b250882791
2019-08-09 23:25:21 +03:00
Gerasimos (Makis) Maropoulos
95ce71be9f
Implement method override wrapper as requested at: #1325
...
Former-commit-id: e476998d8d6b10dc641b3393577937269adb694c
2019-08-06 15:39:42 +03:00
Gerasimos (Makis) Maropoulos
b37b369b51
add content negotiation feature, add context.ReadYAML and fix https://github.com/kataras/neffos/issues/1#issuecomment-515698536
...
Former-commit-id: 9753e3e45c7c24788b97814d3ecfb4b03f5ff414
2019-08-03 04:41:09 +03:00
Gerasimos (Makis) Maropoulos
29bf846bd1
minor version 11.2.2 - register sessions as middleware and Context.HTML/Text like Context.Writef
...
Former-commit-id: 6f5f1c502fb06d739c350c3ecc891f495dc03a6e
2019-07-24 19:51:42 +03:00
Gerasimos (Makis) Maropoulos
db0702ca75
implement ReadQuery with 'url' struct field tag name strictly, as requested at: #1207
...
Former-commit-id: dc0c237f62aa6db5a0c1755b2074d8a18dba0d8f
2019-07-24 03:29:42 +03:00
Gerasimos (Makis) Maropoulos
4caf8d7d9b
remove some examples learning content as they are exist on the wiki itself now
...
Former-commit-id: 8c69be5bf8ca21eb0e405ca5ad8431ceb1c2511e
2019-07-23 17:47:28 +03:00
Gerasimos (Makis) Maropoulos
452b7d2df0
minor
...
Former-commit-id: f0a26383ace695525d5aec52ec2181d781d26a83
2019-07-19 12:27:35 +03:00
Gerasimos (Makis) Maropoulos
4c4b2f5d00
New feature: automatic public domain using tunneling: https://github.com/kataras/iris/issues/1305
...
Former-commit-id: 54844edae9e5eed9bd6b17a06ec8d868923d3681
2019-07-18 00:53:30 +03:00
Gerasimos (Makis) Maropoulos
c2c748067c
respect the WithoutBodyConsumptionOnUnmarshal on 'ctx.ReadForm' and 'ctx.FormValues' and on the new 'ctx.GetBody' method helper as requested at: #1297
...
Former-commit-id: c6a52681c940681ac85a330465d38a078186a8a1
2019-07-12 20:52:39 +03:00
Gerasimos (Makis) Maropoulos
82d645e3cb
add running with http/3 quic protocol as server listener to examples, rel to: https://github.com/kataras/iris/issues/1295
...
Former-commit-id: 4c970c8143a663e5b879c8aeb6614504432dfe8d
2019-07-09 15:22:48 +03:00
Gerasimos (Makis) Maropoulos
29deac3270
Remove the two day old crypto package, let's not confuse users between that and JWT - keep only JWT. And also, Drop older go versions support, only go1.12 and above which comes with a lot of performance improvements and security patches
...
Former-commit-id: a1d791ce45b87ecc440ed9c5aee5d5d204763f0d
2019-07-09 12:42:27 +03:00
Gerasimos (Makis) Maropoulos
450f20902d
MVC improvements: add HandleWebsocket that now registers events automatically based on the struct's methods(!) and fix a bug when more than one value of the same type is registered to a static field of a controller
...
Former-commit-id: e369d1426ac1a6b58314930a18362670317da3c1
2019-07-09 12:16:19 +03:00
Gerasimos (Makis) Maropoulos
9dbb300d9b
implement the Iris Crypto Library for Request Authentication and Verification. With Examples and Tests.
...
Relative to this one as well: https://github.com/kataras/iris/issues/1200
Former-commit-id: 3a29e7398b7fdeb9b48a118b742d419d5681d56b
2019-07-02 19:19:43 +03:00
Gerasimos (Makis) Maropoulos
35389c6ef8
update websocket examples - keep neffos and use the iris/websocket as helper only
...
Former-commit-id: c34b916e186286cd0de6d694d8bdb4f9390121a2
2019-07-01 18:52:17 +03:00
Gerasimos (Makis) Maropoulos
076d9121f1
Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
...
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
2019-06-22 21:34:19 +03:00
Gerasimos (Makis) Maropoulos
d0104defa8
create the new FileServer and HandleDir, deprecate the rest APIBuilder/Party static methods and more
...
relative: https://github.com/kataras/iris/issues/1283 and removing pongo2 from vendor: https://github.com/kataras/iris/issues/1284
Former-commit-id: 3ec57b349f99faca2b8e36d9f7252db0b6ea080d
2019-06-21 19:43:25 +03:00
Gerasimos (Makis) Maropoulos
adb6fd764a
extract the Delim
for redis sessiondb as requested at https://github.com/kataras/iris/issues/1256 and add a mvc/regexp example and some other trivial changes
...
Former-commit-id: f9e09320bfe07ae10ac74f54a78272cf21d21cc7
2019-05-30 10:48:07 +03:00
Gerasimos (Makis) Maropoulos
280872fd59
add iris websocket client side for Go and a simple chat example
...
Former-commit-id: af1c555b6b092a3d0484fee2e200fd8767d7239e
2019-02-09 04:28:00 +02:00
Gerasimos (Makis) Maropoulos
b8addac888
add versioning example
...
Former-commit-id: 54c903135d1c2ba1838b47fa419433dbb010c317
2018-11-18 03:06:59 +02:00
Gerasimos (Makis) Maropoulos
3962710d3d
Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
...
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Gerasimos (Makis) Maropoulos
9f464310e3
Add one more example for dependency injection (HTTP Request-based) using our hero
...
Former-commit-id: ff18371d254caf2d1932d6522b1ebc1f8032708f
2018-08-10 00:23:17 +03:00
Gerasimos (Makis) Maropoulos
2b2492abfa
Add a simple 'Context#GetReferrer', as requested by the People: adapt the goreferrer external package
...
Former-commit-id: 8f1dce93dd5a2449d806f0b28baf5a8c860193b5
2018-08-04 15:19:17 +03:00
Gerasimos (Makis) Maropoulos
8b5c106d1c
NEW TUTORIAL: Writing an API for Apache Kafka with Iris: _examples/tutorial/api-for-apache-kafka. Hope you will enjoy it as I did the whole night:)
...
Former-commit-id: c88f5bbbe171e386c855b91be265b972caa3c1a8
2018-08-04 05:50:22 +03:00
Gerasimos (Makis) Maropoulos
21e90ac4c5
examples: improve the server-sent events example with a table and javascript use...
...
Former-commit-id: 20a6dd0e62679b20fefb2f0a7819c158247a3ca1
2018-08-03 01:59:19 +03:00
Gerasimos (Makis) Maropoulos
5d9ded37c4
Add 'context.OnConnectionClose(callbackFn) bool' and 'context.OnClose(callbackFn)' and give a use case example. More on this path later on, stay tuned.
...
Former-commit-id: dc6580f072d076b8cb204a681e45905210981153
2018-08-02 17:46:35 +03:00
Gerasimos (Makis) Maropoulos
2b72aadb15
add server side events via broker example (based on external resource but it is fairly good for a simple SSE showcase)
...
Former-commit-id: 926c2a88bf1c44354a99654bc85e267b940723b8
2018-07-31 03:12:16 +03:00
Gerasimos (Makis) Maropoulos
247a558394
Add example for struct validation(3rd-party) through json request body binding
...
Former-commit-id: 78bbbe068f219e5a264951c900b77cb9b70f2079
2018-07-24 04:33:53 +03:00
Gerasimos (Makis) Maropoulos
cd5109ae0e
Iris + WebAssemply = = 💓
...
Former-commit-id: 44f08f112cfba8006d2a6fe34e32b24e5c246856
2018-07-09 09:13:36 +03:00
Gerasimos Maropoulos
b4856d542d
Cookies: Ability to set custom cookie encoders to encode the cookie's value before sent by ctx.SetCookie
and ctx.SetCookieKV
and cookie decoders to decode the cookie's value when retrieving from ctx.GetCookie
. That was the second and final part relative to a community's question at: https://github.com/kataras/iris/issues/1018
...
Former-commit-id: 53b6810076c8db8646df335d57a30c78b23cd9b8
2018-06-02 16:35:18 +03:00
Gerasimos Maropoulos
fcff62d5b4
Some minor but helpful additions, like CookieOption
. Relative: https://github.com/kataras/iris/issues/1018 . Simple cookies example added too. Cookie encoding (side by side with the already session's cookie id encoding) and version upgrade will come tomorrow with a new HISTORY.md entry as well, stay tuned!
...
Former-commit-id: d14181fac998d32d77690b1b3e42b6c7c72f1ace
2018-06-02 07:28:40 +03:00
Gerasimos Maropoulos
beef97fd5d
Update vendor for Pug (Jade) Parser and add Iris + Pug examples in the _examples/view folder, relative to https://github.com/kataras/iris/issues/1003
...
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
2018-05-26 22:49:48 +03:00
Gerasimos Maropoulos
3c6d1f2fa3
_examples/README: add bolt session database example link
...
Former-commit-id: 373f25cc016fbdad84e208123c024999d35a47e4
2018-04-26 08:07:09 +03:00
Gerasimos Maropoulos
b62080c4bb
Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy)
as requested by almost everyone. https://github.com/kataras/iris/issues/969
...
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Gerasimos Maropoulos
cb69df2ccf
Add a very simple usage-example for sending server side events
...
Former-commit-id: 6df287d915a772bcae3f2f98445676aba39a2bc6
2018-04-10 21:01:24 +03:00
Gerasimos Maropoulos
56215eeb71
Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md
...
Former-commit-id: 4f8b8c95c1b107a9be3b1ef6835ece949a75ceb6
2018-03-14 07:17:35 +02:00
Gerasimos Maropoulos
83c4b7f52d
add examples for read using custom decoder per type, read using custom decoder via iris#UnmarshalerFunc
and to complete it add an example for the context#ReadXML
.
...
Former-commit-id: 536b1780f12d0b9d9ce9aa976a0f95f18634ec2d
2018-03-08 05:21:16 +02:00
Gerasimos (Makis) Maropoulos
969c2e87d4
add Cache304
as an alternative to the server-side kataras/iris/cache middleware - it can perform better with less server overheat but it comes with a cost of 304 instead of 200 so custom clients must make that check
...
Former-commit-id: b0ba68c528c870fe060e2825c35689771a1d3680
2018-01-25 16:19:45 +02:00
Gerasimos (Makis) Maropoulos
4b4dbb04af
add an app.View
example for parsing and writing templates outside of the HTTP scope(context.View)
...
Former-commit-id: e65d8ece521c778dedf45cf2f522383c26b9901b
2018-01-22 15:42:19 +02:00
Gerasimos (Makis) Maropoulos
25918427bc
support multi-level subdomains redirect, see previous commit for the SubdomainRedirect fast solution
...
Former-commit-id: bc5749e46d1ae65f9d17063f3d8f2ea72510a9d8
2018-01-20 14:54:04 +02:00
Gerasimos (Makis) Maropoulos
e176ff7b0c
NEW: Application#SubdomainRedirect
. Example: https://github.com/kataras/iris/blob/master/_examples/subdomains/redirect/main.go
...
Former-commit-id: d8dd7c426dc9f14c870f103fef703595a2915612
2018-01-20 05:17:31 +02:00
Gerasimos (Makis) Maropoulos
ad9c76adb3
nothing tremendous here
...
Former-commit-id: 34e7c423d0b777b2d8c60e74c8aad0efc13bd7fc
2018-01-09 04:37:23 +02:00
Gerasimos (Makis) Maropoulos
10f440b9db
add a new article about Iris and Vue.js
...
Former-commit-id: c7406cbd961d44016628c55083f554bba1f5745e
2018-01-01 22:14:52 +02:00
Gerasimos (Makis) Maropoulos
b69aebb14a
add a simple example about registering middleware(s) to an mvc Application
...
Former-commit-id: 59da5e241e1488b6b39d2ec0e72c45ad2cc7d901
2018-01-01 22:08:14 +02:00
Gerasimos (Makis) Maropoulos
1b1661ed53
ok almost finished. We're good at deadlines eventually. Tomorrow at 23:59 an article will be published same time with the dev branch merge to master
...
Former-commit-id: 42c1bf88cedbddf3cc01366ab769139546902e71
2017-12-31 02:32:28 +02:00
Gerasimos (Makis) Maropoulos
617258890e
add GetRoute
for MVC Controllers. Give the chance to change rsome route's properties like Name (used for reverse routing in templates, optionally).
...
Former-commit-id: 5ee9b1f97ff3c98cd8e5faddd23a87bbafb8e2e0
2017-12-30 22:04:26 +02:00
Gerasimos (Makis) Maropoulos
64da28af8b
one for today, one for tomorrow and ready :)
...
Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
2017-12-30 20:40:52 +02:00
Gerasimos (Makis) Maropoulos
b282e7c563
Replace controller's .Register with .Handle and AddDependencies with .Register in order to be aligned with the 'hero' package, all examples and docs are updated, it's crazy how I can't stop even on Christmas
...
Former-commit-id: 3b42963e9806e327ee42942cf156bda6059eaf8f
2017-12-27 04:15:41 +02:00
Gerasimos (Makis) Maropoulos
2ab1456414
split of the mvc and the new hero package is completed, now handlers with input and output binding feature is a different feature than the mvc, however the mvc controller's methods can use the hero dependency injection as before (v10+)
...
Former-commit-id: d67f5a5ed9033286bcc4c04f6be612823cba2a57
2017-12-25 20:57:04 +02:00
Gerasimos (Makis) Maropoulos
46505f62db
create a new package, name it as hero, I was thinking super or superb but hero is better name for what it does - the goal is to split the new 'mvc handlers' from the mvc system because they are not the same, users should know that they can use these type of rich binded handlers without controllers as well, like a normal handler and that I implemented here, the old files exist on the mvc package but will be removed at the next commit, I have to decide if we want type aliases for Result or no
...
Former-commit-id: cb775edc72bedc88aeab4c5a6de6bfc6bd56fae2
2017-12-25 20:05:32 +02:00
Gerasimos (Makis) Maropoulos
ef3a09c126
update the documents for the new MVC API and some of its new features but not finished yet, README big examples and _examples/mvc/login is are yet updated and I'm thinking of removing the big examples on README.md, they exist on the _examples/mvc updated.
...
Former-commit-id: c2938d4bcaa3520744526f7975ee3cce632499b3
2017-12-22 10:18:31 +02:00
Gerasimos (Makis) Maropoulos
2042fddb66
Another new feature: websocket controller, for real
...
Former-commit-id: c1a59b86733e890709b52446e22427a17d87f5fc
2017-12-20 17:56:28 +02:00
Gerasimos (Makis) Maropoulos
434b07675e
add example for the simple context#WriteGzip
...
Former-commit-id: 3b4e0834370ebde5e4796b3d75cdbd5c2c25093f
2017-12-14 14:15:29 +02:00
Gerasimos (Makis) Maropoulos
22504f01ef
add a simple hero template example as requested at https://github.com/kataras/iris/issues/840
...
Former-commit-id: 1c65190d21a5febbbbad1b2b565f82f749278d48
2017-12-14 06:11:37 +02:00
Gerasimos (Makis) Maropoulos
ea863914dc
update the vendor json library which is used when 'WithOptimizations' passed on 'app.Run' and resolve https://github.com/kataras/iris/pull/839#issuecomment-351374343
...
Former-commit-id: ad3354717d593393a3f3aec863ec92f1f7e1c829
2017-12-13 14:37:02 +02:00
kataras
8d659d3589
move csrf middleware example
...
Former-commit-id: 5dbe3affead73a97b5313b9f7c00e88470aba24d
2017-11-21 11:38:55 +02:00