Gerasimos (Makis) Maropoulos
82755304af
Merge pull request #1337 from Ibuki-Suika/patch-1
...
Fixed typo in comment
Former-commit-id: becc3be2c6a7aac1c1182b2d571afc5363b53f15
2019-08-15 10:50:46 +03:00
Gerasimos (Makis) Maropoulos
cf2670495c
minor for https://github.com/kataras/iris/issues/1335
...
Former-commit-id: 7bbb330cb4e769222ede5be0adbddc4e37df9e3b
2019-08-15 10:40:58 +03:00
Gerasimos (Makis) Maropoulos
c9e9a4b3bc
add ProblemOptions https://github.com/kataras/iris/issues/1335#issuecomment-521546506
...
Former-commit-id: 6c03439d21175f120c37a7d8dd067a0d10de837a
2019-08-15 10:39:38 +03:00
Suika
7d43dd1363
Fixed typo in comment
...
URLParamTrim returns the escaped... -> URLParamEscape returns the escaped...
Former-commit-id: e5d50d81c30e7df6e01a6136327543b4e1df11cb
2019-08-15 14:23:32 +08:00
Gerasimos (Makis) Maropoulos
43754b9c94
forgotten set status on Problem type
...
as remindered at https://github.com/kataras/iris/issues/1335#issuecomment-521319721
Former-commit-id: 7fc7742c5c3374718fbf39530c45fa068b5d433a
2019-08-14 19:41:30 +03:00
Gerasimos (Makis) Maropoulos
8e83959c61
implement Problem Details for HTTP APIs #1335
...
Former-commit-id: ff789b6d535080c88e05c81ab3fb7d9689801ec7
2019-08-12 12:05:21 +03:00
Gerasimos (Makis) Maropoulos
b7bc89335d
fix https://github.com/kataras/iris/issues/1330
...
Former-commit-id: 221e01638b671586cdab2b84518bd6a1c8d07bda
2019-08-09 08:24:58 +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
913634384c
minor
...
Former-commit-id: 64d2bc8657fce2ef4565e0d10dd0f412ee29ffc5
2019-08-03 08:40:48 +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
f3162254a0
fix https://github.com/kataras/iris/issues/1310
...
Former-commit-id: bd6e0eb0508fb27aea2ff79ad3a82c0acdd51eb7
2019-07-25 17:08:16 +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
275cc14e39
push 11.2.1 - fixes #1298 and #1207
...
Former-commit-id: fca9db43ad6d78fcf01acf8edeadc12abc34195f
2019-07-24 03:50:00 +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
710cc6da54
fix https://github.com/kataras/iris/issues/1298
...
Former-commit-id: 7371178a7662a7e55bd1c83a22ae3a4896b449fb
2019-07-24 02:24:47 +03:00
Gerasimos (Makis) Maropoulos
736709aa75
resolve conflicts with current master v11.1.1
...
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
bb1a93d7fd
touches before release
...
Former-commit-id: c6539320214e9120a801b2a3c3c8e9867dfb2ed7
2019-07-22 04:32:54 +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
657e0133d0
add support for b.HandleMany(GET, /custom3/{ps:string}/{pssecond:string} /custom3/{ps:string}, CtrlMethodName) relative to: https://github.com/kataras/iris/issues/1292
...
Former-commit-id: de08c5eeab7a1c2729fbff7260de00cc2516f78c
2019-07-11 16:33:20 +03:00
Gerasimos (Makis) Maropoulos
2576b3da34
add support for iris-specific form of generating connection IDs as requested at: https://github.com/kataras/neffos/issues/1#issuecomment-508689819
...
Former-commit-id: 0994b63373ebe2b5383a28f042aa2133061cbd18
2019-07-05 16:22:20 +03:00
Gerasimos (Makis) Maropoulos
33028f900d
update the nantive-messages(only) example to the latest websocket (minimum changes, the idea is the same) and misc
...
Former-commit-id: 9598319bc13e8a383114c37f4da84f337ab47b22
2019-06-25 22:10:10 +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
7af5f139e0
fix typo
...
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03:00
Gerasimos (Makis) Maropoulos
af751c7602
fix https://github.com/kataras/iris/issues/1271#issuecomment-499642546
...
Former-commit-id: 30043802c9eadcb4b378e773ca79f8e33bd5d573
2019-06-06 23:06:41 +03:00
Gerasimos (Makis) Maropoulos
e10fada695
updates for neffos and re-push the fix of the request path with uri unescaped codes
...
Former-commit-id: fda1edb3e8dfc538da541070366f5f8f997bf367
2019-06-06 23:05:17 +03:00
Gerasimos (Makis) Maropoulos
ddec78af0a
add Context.ResponseWriter.IsHijacked
to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
...
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
d30f17eb3f
minor
...
Former-commit-id: eca4c3d2962cc4e0b6108144a7b59f2519b531da
2019-02-02 04:56:32 +02:00
Gerasimos (Makis) Maropoulos
2cdbe17bd5
add Context#ResetRequest and core/handlerconv.FromStdWithNext updates the request for any incoming request changes - https://github.com/kataras/iris/issues/1180
...
Former-commit-id: 764bf26bcaa3b7bdae0a2bdbf3bf2b6f8c5c546e
2019-02-02 04:49:58 +02:00
Gerasimos (Makis) Maropoulos
680b5a0923
websocket: replace sync.Map with custom map[string]*connection. Add translate template function example. Fix ctx.HandlerName() does not return the end-dev-defined current route's name, this will give better warnings when using MVC in a wrong way
...
Former-commit-id: 38fda8a20da9bc7665cdd209b7b367c1337dbd94
2019-01-25 23:47:31 +02:00
Gerasimos (Makis) Maropoulos
3dc3fa10ee
minor misspell fix
...
Former-commit-id: 55408a6c25d55cd052bb613db201723eac977232
2019-01-19 23:34:41 +02:00
Gerasimos (Makis) Maropoulos
3fcc70b891
init of v11.2.0: add context#FullRequestURI and NewConditionalHandler
...
As requested at: https://github.com/kataras/iris/issues/1167 and https://github.com/kataras/iris/issues/1170
Former-commit-id: 781c92f444b3e362011be886b32cf88f89998589
2019-01-19 23:33:33 +02:00
Gerasimos (Makis) Maropoulos
55ec53b416
minor doc fix
...
Former-commit-id: ccacb4275cbdc3285f4c8c3b0f13c8985f69a5be
2019-01-11 01:43:22 +02:00
Gerasimos (Makis) Maropoulos
caac0480ba
context#ReadForm can skip unkown fields by iris/context.IsErrPath(err), fixes: https://github.com/kataras/iris/issues/1157
...
Former-commit-id: 5cc8e5a9d58071591154e988262b547653c34e36
2019-01-04 11:40:55 +02:00
Gerasimos (Makis) Maropoulos
8b85b602df
fix https://github.com/kataras/iris/issues/1141 and https://github.com/kataras/iris/issues/1142
...
Former-commit-id: d8d73b3e1b713af9bf7b4712121324079ede6a41
2018-11-28 23:20:08 +02:00
Gerasimos (Makis) Maropoulos
ba7503c9eb
move blackfriday pkg to iris-contrib to avoid future issues like https://github.com/kataras/iris/issues/1132
...
Former-commit-id: 15119e623ab0e6ec480ed1be3621b87e2d29dafe
2018-11-11 00:53:28 +02:00
Gerasimos (Makis) Maropoulos
e08d0b4be6
Update to version 11.0.4. Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-09-november-2018--v1104
...
Former-commit-id: 2c2c32afe31fe94543d145ab8c8475d7b4392ff1
2018-11-09 03:03:48 +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
dd8f06d950
context#ErrEmptyForm
...
Former-commit-id: 92db200ae1dc08dbdb7b345d4299941d248747f0
2018-10-03 20:39:38 +03:00
Gerasimos (Makis) Maropoulos
689f814035
resolve https://github.com/kataras/iris/issues/1085 and https://github.com/kataras/iris/issues/1086
...
Former-commit-id: 17ff6dfcc6ae7ba5d2a771925327fe4cea14befd
2018-09-12 23:59:46 +03:00
Gerasimos (Makis) Maropoulos
01b5f6089d
add Context.Params#GetUint64
...
Former-commit-id: bf6b2dcc0a1078f072c35f4affe375a2eb3f0b82
2018-08-23 02:46:58 +03:00
Gerasimos (Makis) Maropoulos
e5f6bce86f
examples: writing an API for the Apache Kafka: add a root handler for routes documentation to make navigation easier and add some other methods that may find them useful for request state and routes description
...
Former-commit-id: 3775aab2386051b23e127ccc9e3a6accdfdee6d0
2018-08-05 13:51:05 +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
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
7689e48132
Merge branch 'master' of https://github.com/kataras/iris
...
Former-commit-id: 901fb7a50f0d60962f5c7a317e41d65d8a0ee993
2018-03-16 12:39:36 +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
hyhkjiy
0df0bb8052
Update gzip_response_writer.go
...
The Context.SendFile function Send file size more than 65536 byte with bug.
Former-commit-id: 5ad4c80eb20a7e6663fc460ec68e238dd45a918a
2018-03-14 19:46:55 +08: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
431e339ccc
don't force-set content type on gzip response writer's WriteString and Writef if already there
...
Former-commit-id: c882a6ef14e89dd0da7a3a2afc85100ca07dc869
2018-02-06 11:55:56 +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
2a0c6dade6
Update to version 8.5.8 | Read HISTORY.md
...
Former-commit-id: 82128ce7a2896a9a8bafd7a5268b0b42057fc21a
2017-11-09 12:03:14 +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
Gerasimos (Makis) Maropoulos
49ee8f2d75
Update to version 8.5.0 | NEW: MVC Output Result | Read HISTORY.md
...
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
2017-10-09 15:26:46 +03:00
Gerasimos (Makis) Maropoulos
4ff0571785
A tiny improvement to the context.ServeFile
...
Former-commit-id: e9eaa1f51c08ec74cbc17c7cd3f62d557faf23a0
2017-10-01 19:02:55 +03:00
Gerasimos (Makis) Maropoulos
38c6241055
Add a third, simple, example for folder structuring as requested at https://github.com/kataras/iris/issues/748
...
One change to code base but it will be described at the next version:
Error Handlers (`app.OnErrorCode/OnAnyErrorCode`) respect the `app.UseGlobal`'s middlewares now (not the `app.Use` for reasons we can all understand, hopefully).
Former-commit-id: ec97bbb04548f9932cf4d7b950be513b70747bcb
2017-10-01 16:29:25 +03:00
Gerasimos (Makis) Maropoulos
cf1e580cde
Add two examples for folder structuring as requested at https://github.com/kataras/iris/issues/748
...
Former-commit-id: 27c97d005d9cbd2309587b11fc9e2bab85870502
2017-10-01 04:31:13 +03:00
Gerasimos (Makis) Maropoulos
1a57504431
Add nil checks for memstore's GetInt, GetInt64, GetFloat64, GetBool and remove the golang/net/context's interface completion from Context
...
Former-commit-id: f79940acf96d44df5bae8eaaaf20086fdc5e251e
2017-09-29 03:54:05 +03:00
Gerasimos (Makis) Maropoulos
ff8f96d56d
fix https://github.com/kataras/iris/issues/760 and deeper
...
Former-commit-id: 65e8848933386f1d3253b560bbd160079bf4d876
2017-09-22 13:46:00 +03:00
sunshinekitty
cfdff2a962
Update for formBinder repo rename
...
Former-commit-id: a996a9fe9f65099f3511beea207ba29f69879f64
2017-09-13 03:06:01 -05:00
hiveminded
89f79799d1
fix https://github.com/kataras/iris/issues/737 fix https://github.com/kataras/iris/issues/740
...
Former-commit-id: e760aa67d8750bfdd15fc84e2dedeb591c204ba9
2017-09-11 12:18:30 +03:00
hiveminded
8a9a498316
update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
...
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
2017-09-07 16:20:31 +03:00
hiveminded
d7ec0d4416
add content type and response text to the Controller 💯
...
Former-commit-id: 99cde0a445027b10839155501a7918732a783af3
2017-09-02 14:32:14 +03:00
kataras
f5d62a6a18
create a gopkg.toml manually in order to resolve https://github.com/kataras/iris/issues/731
...
Former-commit-id: c9ad41b73ff0338429fe69cd083a1daf684c8e40
2017-08-29 13:13:52 +03:00
kataras
a2de506f80
Upgrade the markdown parser vendor. Prev Commit: Update to v8.4.4, new mvc features. Read HISTORY.md.
...
Former-commit-id: 194b8fb1ba68a046e0e89a42a3e79b2cd319f14b
2017-08-27 19:05:15 +03:00
kataras
5ffc7911cd
Add a TODO on the latest HISTORY.md entry
...
Also disable version updater on Iris benchmark source code files. It may runs ever faster than before if you started the benchmarks immediately after the banner 👍
Former-commit-id: a55dc1e0b658d7386229c32ba6953b1ea60f2872
2017-08-24 15:40:06 +03:00
kataras
91bad4b82b
Push v8.3.4 | Read HISTORY.md
...
Former-commit-id: e660dd91a4aae6d58c823f89cca733f02256c819
2017-08-23 17:01:51 +03:00
kataras
8b3c44b0a3
Give read access to the current route, a feature that many of you asked for
...
Former-commit-id: 39295ac1331ee08d3047c84f5c8ea152bce96781
2017-08-23 16:46:55 +03:00
kataras
151e38d5c8
.NET Core vs Iris MVC vs Iris (classic API with Handlers)
...
No need to format using Writef on benchmarks for a simple string value without dynamic text, just use the WriteString which is the correct function for these apps.
Former-commit-id: 896ec514570d533d8da91af3ad199fc4f823fe74
2017-08-19 07:11:30 +03:00
kataras
b96476d100
Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
...
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00
kataras
39a24fb7cb
Document https://github.com/kataras/iris/issues/720 and fix https://github.com/kataras/iris/issues/719 for good
...
Former-commit-id: 75b855bee9216c28ce8e1ff46aee467766c37f23
2017-08-13 01:47:19 +03:00
kataras
e00cf383a2
Vol2 : https://github.com/kataras/iris/issues/717 , worked
...
Former-commit-id: f4a19eb83a28279782b8a75ee298b38c9e180157
2017-08-12 08:49:00 +03:00
kataras
48e352e1df
Update to 8.2.0 | BoltDB session database, fix file sessiondb, faster, simpler and improvement Session Database API
...
Former-commit-id: 4034737a65b78a77277e4283fd9289c17f4a452e
2017-08-07 06:04:35 +03:00
kataras
2b6af256fa
Fix https://github.com/kataras/iris/issues/703
...
Former-commit-id: 54afc90ad3f04f7164916e34f692d68118bfa675
2017-08-02 20:37:13 +03:00
hiveminded
9143ccec6e
add PartyFunc and gofmt -s -w . 🔷
...
Former-commit-id: a3809498a45140d691f3f235ad9cb25239d495a2
2017-08-01 22:25:08 +03:00
kataras
345e7280a1
Update to 8.1.0 - a new logger implemented as a solution for https://github.com/kataras/iris/issues/680
...
Former-commit-id: 765b43602655fad7f525ca7a5f7f297a6167d075
2017-07-26 15:30:20 +03:00
hiveminded
9a0b18acbf
move sessions and websocket examples, gofmt, fix misspells and experimental optimizations 🍐
...
Former-commit-id: cae4f94bbd404d26ab13dade02b52f81feaddf24
2017-07-22 22:57:20 +03:00
hiveminded
feb1d264c0
add quicktemplate example. Iris + Quicktemplate made easy 👍
...
Former-commit-id: b17fb21d8c1d5a73f9f9170f49ae0527870377a1
2017-07-18 21:17:23 +03:00
kataras
093d087a68
Update to 8.0.4 | New: transfer a message to the request logger
...
Former-commit-id: 2bab3c9f28f7e9edd5d85e579349f70388af871d
2017-07-17 17:42:51 +03:00
kataras
9f85b74fc9
Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
...
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
2017-07-10 18:32:42 +03:00
kataras
e0128d204d
Update to 7.2.0. Read https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720
...
Fix https://github.com/iris-contrib/community-board/issues/12 .
Read more: https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720
Former-commit-id: 398cb69fdc7e5367b147693371287ffb7b912feb
2017-06-15 20:02:08 +03:00
kataras
74989ad0a1
Remove internal/cmd/gen, it has no use for the end-developer.
...
Former-commit-id: 12bead9d379c6644e391c482fe71b2e88263376c
2017-06-11 23:58:34 +03:00
kataras
d031ad55b8
Update to 7.0.5 | Dynamic and static paths are not in conflict anymore.
...
Read more at: https://github.com/kataras/iris/blob/master/HISTORY.md
Former-commit-id: b636d25c141ebdd5ad095ae9271433876a96e7ff
2017-06-11 23:07:50 +03:00
kataras
c4788ee4e8
add gocov on travis
...
Former-commit-id: 99555baee1f5e8ea73b995a5f6476815fd62e0a4
2017-06-10 04:21:55 +03:00
kataras
26c315cdb1
gofmt -s -w .
...
Former-commit-id: 6cca675303187f10377a7a713b2e7b3cdf16fd18
2017-06-10 03:56:42 +03:00
kataras
14e7751d21
SetImmutable
for sessions and context's values. https://github.com/iris-contrib/community-board/issues/5
...
New package "memstore" created, read it to see how I made it.
Former-commit-id: 9edc344b938786b2ef68defec03c44259a2d539c
2017-06-08 03:39:15 +03:00
kataras
a2df3c9740
Fix django view engine and context.ViewData
...
Former-commit-id: e16a9ef0241f83c4b9a7ebd3b5b7663b33fb070a
2017-06-05 03:27:35 +03:00
kataras
5e4b63acb2
Publish the new version ✈️ | Look description please!
...
# FAQ
### Looking for free support?
http://support.iris-go.com
https://kataras.rocket.chat/channel/iris
### Looking for previous versions?
https://github.com/kataras/iris#version
### Should I upgrade my Iris?
Developers are not forced to upgrade if they don't really need it. Upgrade whenever you feel ready.
> Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo ) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes.
**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris`.
For further installation support, please click [here](http://support.iris-go.com/d/16-how-to-install-iris-web-framework ).
### About our new home page
http://iris-go.com
Thanks to [Santosh Anand](https://github.com/santoshanand ) the http://iris-go.com has been upgraded and it's really awesome!
[Santosh](https://github.com/santoshanand ) is a freelancer, he has a great knowledge of nodejs and express js, Android, iOS, React Native, Vue.js etc, if you need a developer to find or create a solution for your problem or task, please contact with him.
The amount of the next two or three donations you'll send they will be immediately transferred to his own account balance, so be generous please!
Read more at https://github.com/kataras/iris/blob/master/HISTORY.md
Former-commit-id: eec2d71bbe011d6b48d2526eb25919e36e5ad94e
2017-06-03 23:22:52 +03:00
Gerasimos Maropoulos
f66b7e2eab
Update to 4.5.0
2016-10-09 21:09:53 +03:00
Gerasimos Maropoulos
741ecbf2fb
https://github.com/kataras/iris/issues/423
2016-09-15 18:59:27 +03:00
Gerasimos Maropoulos
b8b52ad46e
Update to 4.1.4. Users & Devs can ignore this update. Read HISTORY.md for more
2016-09-04 22:02:31 +03:00
Gerasimos Maropoulos
befa43ba2a
context.SendFile supports resume (by range). https://github.com/kataras/iris/issues/359#issuecomment-240471538
2016-08-17 20:16:23 +03:00
Gerasimos Maropoulos
c6f5406c3b
Better gzip managment, align with https://github.com/kataras/iris/issues/361 . OnError on Parties: https://github.com/kataras/iris/issues/35
2016-08-14 05:44:36 +03:00
Gerasimos Maropoulos
f8f6abd906
Add PostValuesAll, PostValues, PostValue shortcut for aio multipart, form data, raw post, query data
2016-07-28 12:13:54 +03:00
Gerasimos Maropoulos
3f13707428
Expose a standard Session interface on context/context.go | https://github.com/kataras/iris/issues/316
2016-07-26 19:36:31 +03:00
Makis Maropoulos
077984bd60
🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md
...
**Sessions were re-written **
- Developers can use more than one 'session database', at the same time,
to store the sessions
- Easy to develop a custom session database (only two functions are
required (Load & Update)), [learn
more](https://github.com/iris-contrib/sessiondb/blob/master/redis/database.go )
- Session databases are located
[here](https://github.com/iris-contrib/sessiondb ), contributions are
welcome
- The only frontend deleted 'thing' is the: **config.Sessions.Provider**
- No need to register a database, the sessions works out-of-the-box
- No frontend/API changes except the
`context.Session().Set/Delete/Clear`, they doesn't return errors
anymore, btw they (errors) were always nil :)
- Examples (master branch) were updated.
```sh
$ go get github.com/iris-contrib/sessiondb/$DATABASE
```
```go
db := $DATABASE.New(configurationHere{})
iris.UseSessionDB(db)
```
> Note: Book is not updated yet, examples are up-to-date as always.
2016-07-15 20:50:36 +03:00
Makis Maropoulos
f7a782b692
Remove deprecated functions
2016-07-13 14:05:32 +03:00
Makis Maropoulos
b99afb2875
Update to v4.0.0-alpha.1
2016-07-13 06:28:09 +03:00
Makis Maropoulos
0b8cb29e0c
Update to 3.0.0-pre.release, Read HISTORY.md for new features and changes
...
Yes new features, with Iris you always get them on each version or
revision or non-semantic version
2016-07-07 02:36:48 +02:00
Makis Maropoulos
f5f7f22245
Ok finish the context's tests
2016-07-07 01:26:05 +02:00
Makis Maropoulos
9100560e00
Embrace https://github.com/kataras/iris/issues/250 - Flash messages available inside request life
2016-07-02 15:02:33 +02:00
Makis Maropoulos
49c1a595ec
Remove unused context.Domain
...
it was added (and wrong idx) on previous commit for some of my internal
tests, this is not used anywhere so remove it.
2016-06-30 06:02:07 +03:00
Makis Maropoulos
66a66fdfa0
Fix https://github.com/kataras/iris/issues/231
2016-06-30 05:58:04 +03:00
Makis Maropoulos
abccf7fc06
Add ParamInt64 as requested on chat from the community
2016-06-26 08:46:04 +03:00
Makis Maropoulos
132021ec43
Add URLParamInt64 as requested by the community on chat
2016-06-26 08:44:10 +03:00
Makis Maropoulos
f83b532835
Embrace the weekend- Update to rc.3 | Read the HISTORY.md
2016-06-24 01:34:49 +03:00
Makis Maropoulos
4a446ac1e2
Complete the OAuth/OAuth2 'high level' support
2016-06-22 16:01:31 +03:00
Makis Maropoulos
56f78567a2
New: OAuth2 support via gothic. Example: https://github.com/iris-contrib/gothic/blob/master/example/main.go
...
https://github.com/iris-contrib/gothic/blob/master/example/main.go
2016-06-22 12:45:57 +03:00
Makis Maropoulos
70b5e3d090
New feature: Auth support for social networks, dropbox, amazon and so on. Untested
...
https://github.com/iris-contrib/goth/ is the main package which has been
converted to work with Iris from the ...
https://github.com/markbates/goth/ . Not yet tested on real application.
2016-06-22 04:22:12 +03:00
Makis Maropoulos
d837381b16
Update to 3.0.0-rc.1 - Read the HISTORY.md. Relative: #183 #184 #166 #176 #181
...
Read https://github.com/kataras/iris/tree/master/HISTORY.md
2016-06-14 08:45:40 +03:00
Makis Maropoulos
7f5fd1904b
Remove the golang.org/x/net/context
2016-06-04 23:33:34 +03:00
Makis Maropoulos
26ef396959
Add history for v3.0.0.-beta.2. Some fixes to subdomains listening on local 127.0.0.1. Change GetURI to ParseURI
...
Examples and e-book updated also.
2016-06-04 23:07:19 +03:00
Makis Maropoulos
1a433e34d5
Wildcard subdomain full support | v3.0.0-beta.2
...
Update to v3.0.0-beta.2.
Wildcard subdomain e-book section:
https://kataras.gitbooks.io/iris/content/subdomains.html
2016-06-04 16:20:32 +03:00
Makis Maropoulos
dc2b40283e
Iris cmd: download packages on every iris create command
2016-06-03 06:17:40 +03:00
Makis Maropoulos
05b6723b19
Implement a GetURI to get the full uri of a (named) route
2016-06-02 19:22:36 +03:00
Makis Maropoulos
8cd1cc2ac8
Iris is looking for a new website design and logo
2016-06-01 04:45:11 +03:00
Makis Maropoulos
c26668a489
Version 3.0.0-beta cleaned
2016-05-30 17:08:09 +03:00