Commit Graph

104 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
bf9f7617e2
examples: update go.mod (see previous commit) 2020-09-05 08:56:01 +03:00
Gerasimos (Makis) Maropoulos
a3279b8fa9
add a note on rewrite middleware for local URL modifications 2020-08-29 18:15:22 +03:00
Gerasimos (Makis) Maropoulos
00684f9d2e
add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested 2020-08-29 01:21:42 +03:00
Gerasimos (Makis) Maropoulos
9c56ed6261
examples: minor: update go mod master version 2020-08-26 19:37:14 +03:00
Gerasimos (Makis) Maropoulos
1780d97d44
update the subdomain redirect example using the rewrite middleware 2020-08-26 00:07:07 +03:00
Gerasimos (Makis) Maropoulos
e41e861c4c
update examples go mods 2020-08-21 20:53:45 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c
... 2020-08-21 20:48:41 +03:00
Gerasimos (Makis) Maropoulos
95c3c2a951
rewrite middleware: add a feature which supports users.json to users?format=json local route redirection 2020-08-21 18:09:21 +03:00
Gerasimos (Makis) Maropoulos
cb80e43ff0
rewrite middleware: add subdomain redirect example 2020-08-20 16:34:19 +03:00
Gerasimos (Makis) Maropoulos
ffae9c0d09
rewrite middleware: add PrimarySubdomain and simplify its usage example 2020-08-20 03:05:47 +03:00
Gerasimos (Makis) Maropoulos
12737c5b7f
implement a rewrite middleware 2020-08-19 22:40:17 +03:00
Gerasimos (Makis) Maropoulos
5481b9a6c1
apps.Switch(apps.Hosts...) example 2020-08-18 04:17:53 +03:00
Gerasimos (Makis) Maropoulos
a61f743fa8
add internal subdomain redirect handler
TODO more things
2020-08-16 20:16:49 +03:00
Gerasimos (Makis) Maropoulos
227170fd33
see https://github.com/kataras/iris/issues/1591#issuecomment-674473247 2020-08-16 18:04:52 +03:00
Gerasimos (Makis) Maropoulos
889b7942d3
add two new examples and share the app's specific logger instance with sessions databases and APIBuilder 2020-08-16 07:07:36 +03:00
Gerasimos (Makis) Maropoulos
ef7d365e81
add iris.Minify middleware and Context.OnCloseErr/OnConnectionCloseErr 2020-08-15 17:21:57 +03:00
Gerasimos (Makis) Maropoulos
8340285e7d
fix #1588 2020-08-15 12:17:48 +03:00
Gerasimos (Makis) Maropoulos
dc35391ceb
fix https://github.com/kataras/iris/issues/1584 2020-08-14 13:04:48 +03:00
Gerasimos (Makis) Maropoulos
46a3a99adf
various improvements and new 'UseOnce' method - read HISTORY.md 2020-08-06 03:35:58 +03:00
Gerasimos (Makis) Maropoulos
802348cedd fix https://github.com/kataras/iris/issues/1569#issuecomment-663739177
Former-commit-id: c55f1023f4d93f6712c7fa4d299bcf1098872ecf
2020-07-25 09:23:34 +03:00
Gerasimos (Makis) Maropoulos
c3205dafa1 New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string

relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446


Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
2020-07-24 13:03:49 +03:00
Gerasimos (Makis) Maropoulos
a1991a0830 README: update benchmarks.
minor performance boost by making RequestParameter  Set and Get methods more direct to the underline Memstore's kv


Former-commit-id: 4fae45b5bd23804e88aac1f7c66055dd81efc9c9
2020-07-18 14:35:27 +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
38b0a796bd fix #1552
Former-commit-id: 953df27468e3905e557bb1f6a97ea431cb60f6a6
2020-07-06 19:08:02 +03:00
Gerasimos (Makis) Maropoulos
beb3f730a0 add an example (and a test case) for same route path pattern but different macro function's input argument
Former-commit-id: f20ac838a08473b6b8114b407cb0dcde7765f634
2020-07-02 20:56:22 +03:00
Gerasimos (Makis) Maropoulos
43502ed047 minor
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
2020-06-18 09:36:47 +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
6d977dacd2 minor example fix (design change that was actually not pushed)
Former-commit-id: db253c191bad711b592d914d386675bf118e497c
2020-06-08 05:19:12 +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
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
c039730521 HTTP error handlers per Party (docs and details in progress)
Former-commit-id: 7092ebed556b56d9f1769b9b23f2340c2a3a18f7
2020-05-11 00:44:54 +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
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
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
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
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
0d26f24eb7 examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
2020-03-05 22:41:27 +02:00
Gerasimos (Makis) Maropoulos
027eb5d6da minor fix required for the upcoming release
Former-commit-id: f04b770f93d7612941340af6e45d7d0516035e14
2020-02-20 05:46:23 +02:00
Gerasimos (Makis) Maropoulos
c558e039d5 fix #1446
Former-commit-id: 6ac95ef58bf3dd0dac8bed2100495fa9908f41d4
2020-02-10 20:35:19 +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
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
42e752b3f5 minor
Former-commit-id: c66f17fb0dc5c130e5060bea4cb4f291e031a36c
2019-11-03 00:41:52 +02:00
Gerasimos (Makis) Maropoulos
dc9ad50e76 fix example as reported as #1390
Former-commit-id: 0864cdb5a77b75919e733dab29a85767333de7f8
2019-11-01 16:07:17 +02:00
Gerasimos (Makis) Maropoulos
303f9d3d69 add a note on http-errors example about #1389
Former-commit-id: 73485e195bc246e8b81a1be3156b361e92c054c7
2019-10-31 06:37:35 +02:00
Gerasimos (Makis) Maropoulos
3945fa68d1 obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
07046ab978 formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00