Gerasimos Maropoulos
fc0f27c4fc
Do not create the global configuration in homedir by-default, as, correctly, requested on chat. Use iris.WithGlobalConfiguration with a pre-defined iris.yml file on your home directory, existing users will not have any issues, new one will have to create the file before
...
Former-commit-id: 033f7e96693b13f87b44b445ed166328fea6e0a0
2018-03-27 09:59:29 +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
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
8cec6a6f9b
remove any trailing slash that may passed on StaticEmbeddedHandler (although all examples shows the correct way but you never know)
...
Former-commit-id: 50ab9ddb2e738b4061622ac9ebcfec30e0cdecfa
2018-03-16 12:38:13 +02:00
Gerasimos Maropoulos
87036fdb6c
add the new StaticEmbeddedGzip on the Party interface, it works within multiple levels like the StaticEmbedded, so why not
...
Former-commit-id: f62c863344a06277935730449d5466fecbc64993
2018-03-15 23:15:10 +02:00
Gerasimos Maropoulos
2d8652d7fb
fix miss content type occurred by commenting this on the previous commit
...
Former-commit-id: 3320cf863da92cb70f74b046a6a2475f83728932
2018-03-15 22:46:23 +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
5e5e91e4bb
fix https://github.com/kataras/iris/issues/927
...
Former-commit-id: 7de62d36b7927d790f5af0c1e64713e0a78d12c5
2018-03-13 15:57:52 +02:00
Gerasimos Maropoulos
c746d631d7
Update to version 10.3.0 | Read HISTORY.md
...
Former-commit-id: 10a0663cdf518dcf35290f18dfdc1eb69ea4a127
2018-03-10 15:13:07 +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
1165b4527a
fix https://github.com/kataras/iris/issues/921
...
Former-commit-id: f8560514a7b48f83121ddd21d74b4016af4e1b67
2018-03-08 20:55:58 +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
ZaniaDevelopper
643358d7cb
Modification
...
- Add configurator for Party
- Modification for CORS middleware example
Former-commit-id: f01c01d4eac41666a92890461851909a6ade018b
2018-02-21 14:22:17 +03:00
Frédéric Meyer
72b096e156
Add fallback handlers
...
Former-commit-id: f7e9bd17076a10e1ed1702780d7ce9e89f00b592
2018-02-21 12:27:01 +03:00
Frédéric Meyer
66209cae4f
Save
...
Former-commit-id: 592e9cddf3511fc08e87f19ad39fdaac479b453f
2018-02-21 08:18:53 +03:00
Gerasimos (Makis) Maropoulos
d4993e6a3f
Update to version 10.2.1 - fix StaticEmbedded & StaticWeb when served from a subdomain. Read https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-february-2018--v1021
...
Former-commit-id: 9bc3ed63fadbb4fb38abef06115b5d6d760256f0
2018-02-15 13:01:13 +02:00
Gerasimos (Makis) Maropoulos
fce7959424
remove old deprecated code from previous version, no need to keep backward compatibility, it was two months ago v10.0.0 released so we should be ok now
...
Former-commit-id: 81ac9d4913e78154b4bb74a01ce707b510e674ec
2018-02-12 06:03:15 +02: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
5fa306d69d
Update to version 10.1.0. Happy February to Everyone!!
...
Former-commit-id: 9c2a95f10c7299d21085d9d5cb4f1327f917123d
2018-02-06 12:38:02 +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
befb1f0c08
some major improvements to the (server-side) cache middleware and an example of a client-side responsibility cache
...
Former-commit-id: 93d3a7a6f163c6d49f315f86d10e63f7b1b1d93a
2018-01-25 15:09:24 +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
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
58f8b3c347
Security fix for TLS-enabled servers, please read https://github.com/kataras/iris/blob/master/HISTORY.md#tu-16-jenuary-2018--v1002
...
Former-commit-id: 861f7a30cbb2309a1f16c5196ceb10b02a92b933
2018-01-16 12:51:28 +02:00
Gerasimos (Makis) Maropoulos
a19e570c8a
Update to version 10.0.1 - read more at: https://github.com/kataras/iris/blob/master/HISTORY.md#mo-15-jenuary-2018--v1001
...
Former-commit-id: 292d155c877ba3f9d1210db54c3df3fedd1d0c1c
2018-01-15 00:54:01 +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
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
91ee8287a8
Merge branch 'master' into dev
...
Former-commit-id: d338e6e846b4379199015dc4ae76677b2d8cbe53
2017-12-21 14:46:58 +02:00
Gerasimos (Makis) Maropoulos
5cbc3d6827
fix https://github.com/kataras/iris/issues/846
...
Former-commit-id: 5ade70e6133406c8bbb4ecef36541fdd0d857f6f
2017-12-21 14:42:39 +02:00
Gerasimos (Makis) Maropoulos
d88e49abaf
Last year we had HTTP/2 at Christmas, this year I will give you even better gift
...
Former-commit-id: 4f384a18b564e7c0f0a48bc74fec05280aa13d76
2017-12-18 07:22:55 +02:00
Gerasimos (Makis) Maropoulos
20ba72aecf
fix typo
...
Former-commit-id: b6f9de4cf8d62210ffefba5d33dc8372d236748d
2017-12-18 06:47:05 +02:00
Gerasimos (Makis) Maropoulos
b8cafce6b9
add simple tests for _examples/mvc/hello-world and session-controller
...
Former-commit-id: d88a792ba57cd869d2888f41bca6eb3e5b4f7d49
2017-12-16 21:27:20 +02:00
Gerasimos (Makis) Maropoulos
55dfd195e0
remove the old 'mvc' folder - examples are not changed yet - add the 'di' package inside the mvc2 package - which will be renamed to 'mvc' on the next commit - new mvc.Application and some dublications removed - The new version will be version 9 because it will contain breaking changes (not to the end-developer's controllers but to the API they register them) - get ready for 'Christmas Edition' for believers
...
Former-commit-id: c7114233dee90ee308c0a3e77ec2ad0c361094b8
2017-12-15 20:28:06 +02:00
Gerasimos (Makis) Maropoulos
8dcbdc0741
performance close to handlers if no bindings but even if bindings except service (new feature is that we can bind functions as well) is x1.1 faster than the previous mvc implementation - make BaseController (so and C) optionally but not break the existing APIs that using iris.C or mvc.C
...
Former-commit-id: a26a8f836894c061e0f435df8ac1c2c534f0ee48
2017-12-13 06:17:28 +02:00
kataras
2d80d73ad7
Merge branch 'master' into dev
...
fix route url reverse and add OnPing at websocket
Former-commit-id: ac8317f8a2516f00150d52f27e48953f49cf76d4
2017-12-04 05:08:10 +02:00
kataras
7043f352d9
made it work but looking for another approach
...
Former-commit-id: e61c4573543c57b8d6d4ef2583e40f52c391402f
2017-12-04 05:06:03 +02:00
honux
9197fd7349
Fixed a bug on router/path
...
- Stored the args length on a variable instead of three consecutive calls to the len method on "toStringSlice" function;
- Improved readability on "toStringSlice" function;
- Fixed a bug on "URL", which all routes without parameters would not return the full uri (just the path);
Former-commit-id: 3ddd8869087aa9046bdb874f98985b76daaa249e
2017-12-02 17:45:43 -02:00
kataras
dd5de52f34
implement a way to add controller functions as handlers with the existing rules respected but it's a bit dirty I will change the implementation and move the mvc2 to mvc and make the api builder's PartyFunc to be a critical part of the controller and the mvc2.Mvc bind values should be also respected to the controller and more
...
Former-commit-id: e452a916da80d886535b8ae9625d0ba8e2b58d6e
2017-11-27 21:39:57 +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
42e7faec52
update the vendor of the new iris-contrib/i18n to support multi locale files as requested at: https://github.com/kataras/iris/issues/815
...
Former-commit-id: 06d7c704caf97eae1fc81228425fddb588f2f68c
2017-11-22 01:01:45 +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
2a0c6dade6
Update to version 8.5.8 | Read HISTORY.md
...
Former-commit-id: 82128ce7a2896a9a8bafd7a5268b0b42057fc21a
2017-11-09 12:03:14 +02:00
kataras
7723e438a1
able to share static configuration between multiple server instances based on the homepath+iris.yml file with iris.WithGlobalConfiguration configurator
...
Former-commit-id: 3e528a3d01eb36b4c0781149e52acffd4dc5cf9f
2017-11-07 01:40:56 +02:00
kataras
af9a1f1241
Update to version 8.5.6 | Read HISTORY.md
...
Former-commit-id: 3c1fb7ad47d54133f68ee0ee8ebe4c3835fe4ce0
2017-11-05 04:12:18 +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