Commit Graph

33 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
57e5b77853 add white box tests for transaction, response writer and some of the context's method
Former-commit-id: 67ea92337f120f03e8bb96d3daa43529b10af2f2
2017-02-17 02:14:46 +02:00
Gerasimos (Makis) Maropoulos
244a59e055 20 days of unstoppable work. Waiting fo go 1.8, I didn't finish yet, some touches remains.
Former-commit-id: ed84f99c89f43fe5e980a8e6d0ee22c186f0e1b9
2017-02-14 05:54:11 +02:00
Gerasimos (Makis) Maropoulos
84f61f6b05 Look HISTORY.md for the 6.1.4 improvements. Fix sessions test expect a nil json instead of an empty. 2017-02-07 03:01:26 +02:00
Gerasimos (Makis) Maropoulos
2a911a450c Add DisableBodyConsumptionOnUnmarshal configuration field as discussed on [chat](https://kataras.rocket.chat/channel/iris). Read HISTORY.md 2017-01-30 12:35:43 +02:00
Gerasimos (Makis) Maropoulos
e4ab993760 Nothing special here, read HISTORY.md 2017-01-10 15:03:02 +02:00
Gerasimos (Makis) Maropoulos
893271bf02 Update to 6.0.7 2017-01-10 08:54:39 +02:00
Gerasimos (Makis) Maropoulos
d5a9410e2a Update to 6.0.3: Add an easy way to set a request body size limit per client or globally for newcomers 2017-01-04 21:29:58 +02:00
Gerasimos (Makis) Maropoulos
058d70e533 Update to 6.0.1 - use the response recorder whenever you need it. Read HISTORY.md 2017-01-04 15:16:53 +02:00
Gerasimos (Makis) Maropoulos
8bbd9f8fc5 Happy new year! Update to 6.0.0 | HTTP/2 full support. https://github.com/kataras/iris/issues/565
full commit from development branch.

Examples, book, middleware, plugins are updated to the latest iris
version. Read HISTORY.md for more.

The 'old' v5 branch which relied on fasthttp exists for those who want
to use it navigate there: https://github.com/kataras/iris/tree/5.0.0
2017-01-02 21:20:17 +02:00
Gerasimos (Makis) Maropoulos
fe79fdea44 Fix https://github.com/kataras/iris/issues/566 2016-12-22 19:07:03 +02:00
Gerasimos (Makis) Maropoulos
88c98bb1e1 More on Transactions: Fallback on, unexpected, panics and able to send 'silent' error which stills reverts the changes but no output 2016-12-18 14:08:28 +02:00
Gerasimos (Makis) Maropoulos
f54dc697cc More on Transactions: iris.UseTransaction and iris.DoneTransaction. See HISTORY.md 2016-12-16 10:20:05 +02:00
Gerasimos (Makis) Maropoulos
48e770dab0 Update to 5.1.1 - Addons for the last feature, Transaction scopes. Read HISTORY.md
Read HISTORY.md and example here:
github.com/iris-contrib/examples/tree/master/transactions
2016-12-15 17:16:17 +02:00
Gerasimos (Makis) Maropoulos
65980d3363 New Feature: Request-Scoped Transactions
Example:
https://github.com/iris-contrib/examples/tree/master/request_transactions
2016-12-15 15:14:48 +02:00
Gerasimos (Makis) Maropoulos
8a861997a4 nothing special here 2016-12-13 07:12:58 +02:00
Gerasimos Maropoulos
d32ae1377c Implement Cache as https://github.com/kataras/iris/issues/513
I love coding unique Iris staff!!!
2016-10-27 03:17:09 +03:00
Gerasimos Maropoulos
78d145c207 Introduce version 5.0.1 2016-10-25 15:58:18 +03:00
Gerasimos Maropoulos
89abc3349d Replace panic with a message when MustRender fails 2016-10-15 20:48:06 +03:00
Gerasimos Maropoulos
122aab4083 Update to 4.6.0, read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-10-13 17:25:01 +03:00
Gerasimos Maropoulos
a000da35c3 Update to 4.4.8 - Custom decoders for ReadJSON/ReadXML, read HISTORY.md
Read: https://github.com/kataras/iris/blob/master/HISTORY.md
2016-10-06 23:19:55 +03:00
Gerasimos Maropoulos
716b5001da Fix https://github.com/iris-contrib/middleware/issues/13 2016-09-30 18:48:48 +03:00
Gerasimos Maropoulos
f4b4dd0275 Implementation of https://github.com/kataras/iris/issues/412 , as requested. Read HISTORY for a code snippet 2016-09-29 17:05:22 +03:00
Gerasimos Maropoulos
5c98c5a493 Update to v4.4.0 Implementation of https://github.com/kataras/iris/issues/438
Read HISTORY.md
2016-09-27 16:28:38 +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
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
40ab94a9fc Fix tests 2016-07-08 22:11:39 +02:00
Makis Maropoulos
68111f57d1 Replace fasthttp's with correct remove cookie code... fixes flash messages and sessions on some cases 2016-07-08 21:33:41 +02:00
Makis Maropoulos
981fef9ecf add test for cookie set/get/remove to help this guy https://github.com/kataras/iris/issues/270 2016-07-07 16:02:15 +02:00
Makis Maropoulos
7723c22ef6 Ok finish the important staff, the other are already tested hundreds of times 2016-07-07 01:36:38 +02:00
Makis Maropoulos
f5f7f22245 Ok finish the context's tests 2016-07-07 01:26:05 +02:00
Makis Maropoulos
728cba60f7 Add test for RedirectTo and fix the wrong-way-to-do-test-with-map-which-keys-some-times-change-order-lol 2016-07-07 01:20:04 +02:00
Makis Maropoulos
01914b6c37 Fasthttp seems have little bug with headers, so make a VisitAllCookies function and GetFlashes completed- tests added also 2016-07-07 00:25:50 +02:00
Makis Maropoulos
2cc75817b7 Add support for more than one listening server to one station, virtual and no virtual 2016-07-06 20:24:34 +02:00