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
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 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
4eeffd07c7
Update the _examples/http_request/upload-file to fill the gap, relative discussion: https://github.com/kataras/iris/issues/979
...
Former-commit-id: a113e8815a6a2821a80ac424f52302528a6e71b5
2018-04-28 14:48:09 +03:00
Gerasimos Maropoulos
66d367b255
Update to version 10.5.0 | Read HISTORY.md for more
...
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
2018-03-24 10:39:44 +02:00
Gerasimos Maropoulos
8e9deec4ab
Add one more browser (and 304 server) cache method using ETag and If-None-Match headers
...
And replace the 'ctx.WriteWithExpiration' with simple 'ctx.Write' at 'StaticEmbeddedHandler' of core/router/fs.go, now that we have plenty of options for client cache give the end-dev the oportunity to use them or not on static embedded handlers
Former-commit-id: 9c9e2f3de3c5ad8c9e14e453b67e6b649b02bde8
2018-03-18 11:55:05 +02:00
speedwheel
50164f082c
new handlers for client (i.e browser) catching: cache.NoCache and cache.StaticCache including tests
...
Former-commit-id: 18975297c8b96c7f9d5ff757f92051f6b10933c1
2018-03-17 06:15:13 +02:00
Gerasimos Maropoulos
bc45e6444c
Cleanup of some old code
...
Remove the StaticCacheDuration unused package-level variable from context/context.go and /core/router/api_builder.go it should be removed a year ago, now all the cache funcs and middlewares accept their own options | Remove duplicated header keys that are used on both context/context.go and core/router/fs.go by exporting context's one.
Former-commit-id: 2a5c840d26b32144d2b5b3173a1e4bb4324cecba
2018-03-17 02:27:25 +02: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
4993918a12
remove the complicated fallback handlers, that didn't work and not approve the coblexity addition of the https://github.com/kataras/iris/pull/919 , RouteExists accepts first argument the Context, add new AllowMethods per party and fix cors by 048e2be034
https://github.com/kataras/iris/issues/922 , rel: https://github.com/iris-contrib/middleware/issues/36 , https://github.com/iris-contrib/middleware/issues/34 , https://github.com/iris-contrib/middleware/issues/32 , https://github.com/iris-contrib/middleware/issues/30 , https://github.com/kataras/iris/pull/909
...
Former-commit-id: 5576c44b64014fb00dd79e618b815b5f52b705e4
2018-03-10 14:22:56 +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 Maropoulos
6de64d517e
New: context#NextOr && context#NextOrNotFound and some performance improvements on the awesome https://github.com/kataras/iris/pull/909 pushed a while ago
...
Former-commit-id: 35dd2ab80b69a5bea6f35f58e636bc11229d9921
2018-02-23 04:06:05 +02:00
Gerasimos (Makis) Maropoulos
eeac8ccdbd
NEW Feature: Fallback handlers by @ZaniaDeveloper via PR: #909
...
Relative: https://github.com/kataras/iris/issues/884 and https://github.com/iris-contrib/middleware/issues/32
Former-commit-id: 5d79d9fbb5792521ee707ba513cb40681438ea6f
2018-02-23 02:24:14 +02:00
Gerasimos (Makis) Maropoulos
9bfa0fb52b
fix a typo by @aermolaev via PR: #910
...
Former-commit-id: 4cf236d03fa8e120b650367aaab15c9bac4ce9d3
2018-02-23 02:16:25 +02:00
Gerasimos Maropoulos
86bb29ed14
remove unnecessary reflection usage on context#UnmarshalBody
...
Former-commit-id: a7dc78027c5647b3b21098808f360a536d8b9438
2018-02-23 02:15:38 +02:00
Alexander Ermolaev
8517904bcf
fix a typo
...
Former-commit-id: 8b8e3eaff43019fc0503708e8bc33a2fdb6f1496
2018-02-22 18:25:56 +03:00
Frédéric Meyer
72b096e156
Add fallback handlers
...
Former-commit-id: f7e9bd17076a10e1ed1702780d7ce9e89f00b592
2018-02-21 12:27:01 +03:00
Gerasimos (Makis) Maropoulos
9cdae4ee67
Update to version 10.2.0. Read: https://github.com/kataras/iris/blob/master/HISTORY.md#th-08-february-2018--v1020
...
Former-commit-id: 2eb94ec0f565b80790784ac55af024429384b3d3
2018-02-08 14:04:39 +02:00
Gerasimos (Makis) Maropoulos
711e48d9ab
fix https://github.com/kataras/iris/issues/897
...
Former-commit-id: 6f94a79d9ce3ac9b2b05d1e2637059996a02df1d
2018-02-03 18:31:01 +02:00
Gerasimos (Makis) Maropoulos
019911237c
add context#StatusCodeNotSuccessful for customize even the most customized clients that are not compatible with the standards and fix the SPA
if static file serve handlers are passed as its AssetHandler
as reported at the chat.iris-go.com
...
Former-commit-id: ccd0815a09b9305bfbeaad7b46559dd86f34f20b
2018-01-31 02:35:22 +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
981322cfd2
no need to default the Configuration.RemoteAddrHeaders to a list of 'dissalowed' header names, the ctx.RemoteAddr()
made unnecessary checks if no X-header was passed, even if they defaulted to false, this will not give a crazy improvement but it's a good practise
...
Former-commit-id: ba9ed1475a76489df16cac0ed87275b5604f2ad0
2018-01-25 06:31:05 +02:00
Gerasimos (Makis) Maropoulos
bf13f7648a
add vscode extension link and badge | Some internal improvements (not completed yet)
...
Former-commit-id: 9bc94e90a2780ee81f8188509d98063fb3f2924b
2018-01-25 03:16:49 +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
6b14cb0009
fix #859
...
Former-commit-id: bcd483d42ac0d7c58c863ac54b55dc8069bd81ce
2018-01-04 15:36:50 +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
64da28af8b
one for today, one for tomorrow and ready :)
...
Former-commit-id: 2e0a335c84c1d9c57a61b7f3203e54f7cccd7dcc
2017-12-30 20:40:52 +02:00
Gerasimos (Makis) Maropoulos
75d710ce90
respect the new configurator WithPostMaxMemory
on the context.PostFile
...
Former-commit-id: b0127d2ae3048a94f2647c53b2177dbc79084448
2017-12-27 20:47:19 +02:00
Gerasimos (Makis) Maropoulos
90c825efc8
breaking change: remove static field context.DefaultMaxMemory
and replace it with a better configurable option inside the main configuration, this makes things clear and it allows users to prevent any unwanted client behavior without digging into the framework's internals
...
Former-commit-id: 875afd32acfab8abdea15ce9be2ad384eb6bad5e
2017-12-27 20:42:46 +02:00
Gerasimos (Makis) Maropoulos
6254ade603
some improvements on the context#Post/Form comments docs
...
Former-commit-id: 0486e2291f3fb39eeed4d03a7d20becd516e5bbc
2017-12-27 19:52:06 +02:00
Gerasimos (Makis) Maropoulos
685954d341
add a simple context#YAML function to render yaml data and make sure that the cookie's values are url escaped and unescaped when retrieve from client's headers
...
Former-commit-id: cad1e09679f6b646c12bb6ffdeba62738bdeef5d
2017-12-27 15:38:06 +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
20ba72aecf
fix typo
...
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
2017-12-18 06:47:05 +02:00
Gerasimos (Makis) Maropoulos
d5a38a0cd6
more checks about creating new instance of controller on each request - this time if all bindings are static then set them to the initial-devpassed controller and if the total number of lengths are equal with these static dependencies then we ignore the injector and use the initial controller on each request - maximize the performance when simple controller is used - need more cleanup before new release but I hope until Christmas iris developers will be amazed
...
Former-commit-id: 32ed69368d1df2c25cdb712bb7f0cf47b2e36c05
2017-12-18 00:16:10 +02:00
Gerasimos (Makis) Maropoulos
a5fac270cf
Merge branch 'master' into dev
...
Former-commit-id: d9d3c857d953c379f724bdb1d0473f91758f7cfe
2017-12-14 14:21:03 +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
43c330f338
Merge branch 'master' into dev
...
Former-commit-id: 451baf594a5fb7f288291cdd73b86998cb364af4
2017-12-13 14:46:45 +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
Gerasimos (Makis) Maropoulos
aa18b62f64
add a ridiculous simple 'context#String' func which will return a very simple string representatin of the current request
...
Former-commit-id: e8a17f006516d77aa466b64c8065ed8f07b332e4
2017-12-10 07:26:01 +02:00
Gerasimos (Makis) Maropoulos
ed79f0c3cd
ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2
...
Former-commit-id: 552095d29256a1116849cc6054c82001e790e705
2017-12-10 07:00:51 +02:00
kataras
20f68416a7
add context#IsMobile
...
Former-commit-id: 2f857e2b57a10233d4c9ea5ec365b84c1b8b1c76
2017-12-04 08:12:34 +02:00
kataras
907ba28f84
give some more control over request params and their entries for the end-developers
...
Former-commit-id: 91362d3de5c63faf0d124e66747e40ad0df04fbb
2017-11-23 12:30:13 +02:00
kataras
9640f59961
app. SPA from router wrapper to a simple handler, works faster now. Iris' router respects wildcards with other paths as well (unique) for almost a half year now... so we don't need a whole wrapper for those things anymore, fixes https://github.com/kataras/iris/issues/807
...
Former-commit-id: 5bd7f24997bb025a01bb92960a1bf255f073a228
2017-11-10 16:15:47 +02:00
kataras
ef41e07d4e
Add a better example for the recaptcha middleware as requested at: https://github.com/kataras/iris/issues/799
...
Former-commit-id: 85c3286a9d6be5cf47631e7608f70f3790934e64
2017-11-04 02:59:21 +02:00
kataras
15feaf0237
Update to version 8.5.5 | Read HISTORY.md
...
Former-commit-id: dced7d472edabbab4f80c76051f13261928a8dea
2017-11-02 05:54:33 +02:00
Gerasimos (Makis) Maropoulos
4a63488948
Update to version 8.5.4 | Read HISTORY.md
...
https://github.com/kataras/iris/blob/master/HISTORY.md#th-26-october-2017--v854
Former-commit-id: 43a3b46b99085e0e0ed47b281e2f61dbb1ac6eb6
2017-10-26 02:48:16 +03:00
Gerasimos (Makis) Maropoulos
32d14db46d
Update the _examples/mvc/login example - add a Path property at mvc.Response
and add a context.Proceed
helper function
...
Former-commit-id: b898901fe4a324e888a6e09c93530cf7a551cf2a
2017-10-12 16:28:41 +03:00