Commit Graph

1398 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
444a4a0363 remove websocket's connection's temp storage, as it was deprecated for quite long time (we have access to Context().Values() now)
Former-commit-id: 26dfa47c374646590831d62fa1fc1dc02d8705fc
2019-02-23 18:35:29 +02: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
bda36145e5 some cleanup, and remove the test 'testwebocket2' package at all; A lower-level fast websocket impl based on gobwas/ws will be published on a different repo, it is a WIP
Former-commit-id: b680974c593196ce20865ed12778929ced6afea1
2019-02-22 21:24:10 +02:00
Gerasimos (Makis) Maropoulos
c477251d1f improve client test, I think we are OK, both gorilla(websocket) and ws(websocket2) have the same API, it's time to combine them but first let's give a lower level of api available for users if they want to manage the routines by theirselves (i.e on unix they can use netpolls manually)
Former-commit-id: 3209a7490939bce913732c1375190b0771ba63ae
2019-02-19 22:49:16 +02:00
Gerasimos (Makis) Maropoulos
65c1fbf7f2 websocket: from 1k to 100k on a simple raspeberry pi 3 model b by using a bit lower level of the new ws lib api and restore the previous sync.Map for server's live connections, relative: https://github.com/kataras/iris/issues/1178
Former-commit-id: 40da148afb66a42d47285efce324269d66ed3b0e
2019-02-18 04:42:57 +02:00
Gerasimos (Makis) Maropoulos
eb22309aec fix issue on binding sessions caused by variadic cookie options, as reported at: https://github.com/kataras/iris/issues/1197
Former-commit-id: 595a347706b6816729939a2e9d9098f5d3f72304
2019-02-17 16:10:25 +02:00
Gerasimos (Makis) Maropoulos
701267e034 add a new websocket2 package without breaking changes to the iris API. It implements the gobwas/ws library (it works but need fixes on determinate closing connections) as suggested at: https://github.com/kataras/iris/issues/1178
Former-commit-id: be5ee623b7d030bd9e03a1a2f320ead975ef2ba8
2019-02-17 04:39:41 +02:00
Gerasimos (Makis) Maropoulos
6ca19e0bca sessions: give ability to the end-user to modify the cookie via context.CookieOption on Start and Update/ShiftExpiration as requested at: https://github.com/kataras/iris/issues/1186, add a StartWithPath helper as well
Former-commit-id: a9f8715b07049a5720a38c9352bb1ff781dfc04d
2019-02-16 21:03:48 +02:00
Gerasimos (Makis) Maropoulos
9cfaff07d6 add support for mvc and hero dynamic dependencies to understand the error type as a second output value as requested at: https://github.com/kataras/iris/issues/1187
Former-commit-id: 49e29c06aaaa22743354981342c29fc9d5953d0e
2019-02-16 00:42:26 +02:00
Gerasimos (Makis) Maropoulos
07994adabb add websocket client stress test, passed and update the vendors (this commit fixes the https://github.com/kataras/iris/issues/1178 and https://github.com/kataras/iris/issues/1173)
Former-commit-id: 74ccd8f4bf60a71f1eb0e34149a6f19de95a9148
2019-02-14 03:28:41 +02:00
Gerasimos (Makis) Maropoulos
946c100f7d use the same connection structure for both client and server-side connections interfaces, the 'Connection' interface could be changed to 'ServerConn' but this would produce breaking naming change to the iris users, so keep it as it's.
Former-commit-id: 3440871b368709e33d2d2a5080c66f7ad9338970
2019-02-10 17:16:43 +02: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
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
7278bcd537 minor fmt
Former-commit-id: d22d8c4a715326901cd12368268eb3fb3e087a5f
2019-02-02 04:25:04 +02:00
Gerasimos (Makis) Maropoulos
4284739151 add tutorial for the official mongodb go driver
Former-commit-id: 8353dd101c37c223bba404403f9f8fa2d042fede
2019-01-28 05:36:44 +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
443776c423 add a warning on mvc if someone didn't read the examples or the godocs and .Register dependencies after .Handle
a developer sent a direct question message from our facebook page: https://www.facebook.com/iris.framework/


Former-commit-id: ebd7b4bc9078d4952799b4498ce4dfb0ed4c8072
2019-01-20 14:06:06 +02:00
Gerasimos (Makis) Maropoulos
d451335aa2 gofmt
Former-commit-id: 75992b3aeae2228a7a7f0e698ce78b2f323cc33a
2019-01-20 00:00:54 +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
571ef59adf fix minor misspell
Former-commit-id: 515763c090184f8ed35f4ee776c3f5b1ea692141
2019-01-16 22:46:35 +02:00
Gerasimos (Makis) Maropoulos
ff3f052da1 push version 11.1.1
Former-commit-id: bf1c6f29a515c8c67cbc95aa7f47ccac2d843987
2019-01-11 02:10: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
b1f4a85bbe README: Iris Starter Kits: add yz124/superstar -- Iris + xorm to implement the star library
Former-commit-id: ada9f896462a8c729877b23c16847ce3c5be58ce
2019-01-08 00:33:27 +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
8b74e3343d fix https://github.com/kataras/iris/issues/1164
Former-commit-id: 533b277c6a33d44da48df2ad9ca2b5ebb962bc96
2019-01-04 11:16:40 +02:00
Gerasimos (Makis) Maropoulos
8d12c526d8 update kataras/pio gomod version
Former-commit-id: bcca4382f2533b32b2b8497fb5efb339da30f6f0
2019-01-03 12:57:49 +02:00
Gerasimos (Makis) Maropoulos
67081d8219 add https://github.com/snowlyg/IrisApiProject to starter kits (chinese)
Former-commit-id: d09c795018df59834af91a8ba087649bcb023d8d
2018-12-24 02:32:33 +02:00
Gerasimos (Makis) Maropoulos
4a77067c8a Merge pull request #1156 from fduxiao/master
README_ZH.md in _examples/

Former-commit-id: 6e50de7e131b47d16d359061ef405a5a6f9a1dbd
2018-12-18 12:51:32 +02:00
fduxiao
b01aa84551 Translate _examples/README.md into Chinese
Former-commit-id: bee3e04b8796ebede5b3cee37c2d8a65fc8d2860
2018-12-18 18:06:12 +08:00
Gerasimos (Makis) Maropoulos
e0f67d8d2c Add StatusTooEarly, compatible with: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425#Browser_compatibility
Former-commit-id: 51163eb71e793d5c8b8ae42d67b15ef2a431a386
2018-12-08 21:12:47 +02:00
Gerasimos (Makis) Maropoulos
53c010e855 Merge pull request #1148 from drenel18/patch-1
Fix link for httpexpect in README

Former-commit-id: 44eda556757f93c4af5f762efd7f870cfe6f6639
2018-12-07 12:40:00 +02:00
Daph Renel
02230bd5e2 Fix link for httpexpect in README
the previous link  will be automatically appended to `https://github.com/kataras/iris/` and thus get a wrong direction

Former-commit-id: e791aa332c487fd27e04f9460482502dd160f45f
2018-12-07 16:54:22 +08:00
Gerasimos (Makis) Maropoulos
5f1dd78a12 Merge pull request #1146 from Slamper/patch-1
Fix cache corruption due to recorder reuse

Former-commit-id: e010b13230f93e0dab208bc1558aca094efc1667
2018-12-02 03:00:57 +02:00
Hendrik Hofstadt
2573a3e940 Fix cache corruption due to recorder reuse
Former-commit-id: b37ba1a3d48469613827333e20c9b75e3fd0cc44
2018-11-30 00:51:47 +01:00
Gerasimos (Makis) Maropoulos
02d94041f9 fix grammar and misspell
Former-commit-id: 1816619f891df77a5d1925d43c25243dcadbceb5
2018-11-29 04:01:05 +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
1843a7d1f1 Merge pull request #1140 from d7561985/master
session/redis: fix unused service config var. IdleTimeout witch was r…

Former-commit-id: d639a13be5343b934b27c6af23259e2e7c07a5bc
2018-11-27 14:39:27 +02:00
Dzmitry.Harupa
b1b5986974 session/redis: fix unused service config var. IdleTimeout witch was replaced by default values
Former-commit-id: 27752108409604cbabadf0d4457321f6e3336f9f
2018-11-27 14:55:00 +03:00
Gerasimos (Makis) Maropoulos
0411e0eaee update mod
Former-commit-id: 883c1578672e95891f7aadd4d48948b3bcc822bf
2018-11-18 05:24:21 +02:00
Gerasimos (Makis) Maropoulos
a638e9ef81 Publish version 11.1.0. Read HISTORY.md for details
Versioning API - https://github.com/kataras/iris/blob/master/HISTORY.md#su-18-november-2018--v1110

Former-commit-id: 59296266798a8fca3af65497ea63f8f84d60de79
2018-11-18 03:28:23 +02:00
Gerasimos (Makis) Maropoulos
c0f48385a8 Publish version 11.1.0. Read HISTORY.md for details
Former-commit-id: 5bc97f3093655d08e07cfa0a27decda98b6d300f
2018-11-18 03:26:48 +02:00
Gerasimos (Makis) Maropoulos
18b236a1ee add AUTHORS note to the new versioning package
Former-commit-id: f14579297e6662ae88f2fd33cce613b9c262ec13
2018-11-18 03:09:17 +02:00
Gerasimos (Makis) Maropoulos
b8addac888 add versioning example
Former-commit-id: 54c903135d1c2ba1838b47fa419433dbb010c317
2018-11-18 03:06:59 +02:00
Gerasimos (Makis) Maropoulos
c74196c6d7 finalize the API
Former-commit-id: e680a9fc517c02eca66f83e42519c9820122fae8
2018-11-18 02:41:24 +02:00
Gerasimos (Makis) Maropoulos
6886fd98c8 complete the versioning/README.md and add AllowMethods like the normal Party, version-specific middlewares are not needed because the end-developer should declare a middleware with manual matching of version using versioning.Match(ctx, version) bool instead
Former-commit-id: 4f4c23dd7c043d5ab735070ae4d59ea84e3af2e0
2018-11-11 17:27:31 +02:00
Gerasimos (Makis) Maropoulos
70610af6fd add versioning/README.md
Former-commit-id: 7ea92fadc982038533675996704b6bf89e149aae
2018-11-11 02:18:19 +02:00
Gerasimos (Makis) Maropoulos
fc9e5b3c05 resolve master conflicts for vendor
Former-commit-id: c47d392d32b704f230ae4b2e2610ea35c4e399f6
2018-11-11 01:33:14 +02:00
Gerasimos (Makis) Maropoulos
3a77da586f blackfriday move to iris-contrib, tested
Former-commit-id: b9a0b9288f06a190500d8583af2503fcd67efe12
2018-11-11 00:57:26 +02:00