Commit Graph

65 Commits

Author SHA1 Message Date
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
f2a7b4e43a Update to 5.4.3, zero user changes. 2016-10-13 04:02:04 +03:00
Gerasimos Maropoulos
9bce4e846a Update to 4.5.2 2016-10-11 22:35:12 +03:00
Gerasimos Maropoulos
f66b7e2eab Update to 4.5.0 2016-10-09 21:09:53 +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
99734f7e11 Add some of the book's section on README too 2016-10-02 14:59:04 +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
2838c387ee Fast silly fix from previous commit 2016-09-15 19:13:39 +03:00
Gerasimos Maropoulos
741ecbf2fb https://github.com/kataras/iris/issues/423 2016-09-15 18:59:27 +03:00
Gerasimos Maropoulos
97431f2650 Replace response engines with serializers, same job but organized better, read README.md , no front-end changes if you used default engines. 2016-09-10 07:23:02 +03:00
Gerasimos Maropoulos
f561b7a90d Update to 4.2.0 - Configuration changes (big but old way still works, naming changes) & Implement https://github.com/kataras/iris/issues/409 2016-09-09 08:09:03 +03:00
Gerasimos Maropoulos
1a7c79db66 Update to 4.1.7. Logger changes, read HISTORY.md 2016-09-07 07:36:23 +03:00
Gerasimos Maropoulos
a073e442fc Align sessions with the latest kataras/go-sessions. Now you should update :) 2016-09-05 13:08:32 +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
c38a9b2459 Developers can ignore this update. Replace the template engines with a new cross-framework package (kataras/go-template) 2016-09-02 06:05:44 +03:00
Gerasimos Maropoulos
6163726bc5 Replace utils/file with go-fs and go-installer, fix previous tests 2016-09-01 06:34:55 +03:00
Gerasimos Maropoulos
1d49188da9 Developers can ignore this update. Use of go-websocket and go-errors. Zero front-end changes. No real improvements. 2016-09-01 06:01:53 +03:00
Gerasimos Maropoulos
2d067ac081 Update to 4.1.1 - Able to set Sessions.CookieLength. Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-08-18 03:20:59 +03:00
Gerasimos Maropoulos
532254e03b Bring back AcquireCookie and ReleaseCookie usage 2016-08-18 00:28:03 +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
3beb292f4f Fix https://github.com/kataras/iris/issues/351 2016-08-16 19:23:12 +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
08e6ea31de Add a better check for domain persistance on sessions - add the community members names who helped on website & logo on README 2016-07-30 17:24:12 +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
Gerasimos Maropoulos
5579153614 Fix the call to pointer on .UseTemplate(...).Directory(..).Binary(...) 2016-07-26 18:36:03 +03:00
Gerasimos Maropoulos
d10273391a Fix https://github.com/kataras/iris/issues/312 2016-07-25 14:45:12 +03:00
Gerasimos Maropoulos
85a2e98ba4 Try #https://github.com/kataras/iris/issues/275 2016-07-21 20:33:00 +03:00
Gerasimos Maropoulos
0dbab32d9d Set the default hostname to "0.0.0.0" from "127.0.0.1" - as golang's net.Listener does by default
I changed that because some guys has problems in their hosting machines,
and they should use the "127.0..0.1" instead of "0.0.0.0", if you have
problems just pass `iris.Listen("127.0.0.1:8080") instead of
`iris.Listen(":8080")`
2016-07-21 00:03:36 +03:00
Gerasimos Maropoulos
675c0d510c Update to 4.0.0-alpha.3 - Response Engines, 'inject' the context.JSON/JSONP/Text/Data/Markdown/Render, Read HISTORY.md
## 4.0.0-alpha.2 -> 4.0.0-alpha.3

**New**

A **Response Engine** gives you the freedom to create/change the
render/response writer for

- `context.JSON`
- `context.JSONP`
- `context.XML`
- `context.Text`
- `context.Markdown`
- `context.Data`
- `context.Render("my_custom_type",mystructOrData{},
iris.RenderOptions{"gzip":false,"charset":"UTF-8"})`
- `context.MarkdownString`
- `iris.ResponseString(...)`

**Fix**
- https://github.com/kataras/iris/issues/294

**Small changes**

- `iris.Config.Charset`, before alpha.3 was `iris.Config.Rest.Charset` &
`iris.Config.Render.Template.Charset`, but you can override it at
runtime by passinth a map `iris.RenderOptions` on the `context.Render`
call .
- `iris.Config.IsDevelopment` , before alpha.1 was
`iris.Config.Render.Template.IsDevelopment`

**Websockets changes**

No need to import the `github.com/kataras/iris/websocket` to use the
`Connection` iteral, the websocket moved inside `kataras/iris` , now all
exported variables' names have the prefix of `Websocket`, so the old
`websocket.Connection` is now `iris.WebsocketConnection`.

Generally, no other changes on the 'frontend API', for response engines
examples and how you can register your own to add more features on
existing response engines or replace them, look
[here](https://github.com/iris-contrib/response).

**BAD SIDE**: E-Book is still pointing on the v3 release, but will be
updated soon.
2016-07-18 17:40:42 +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
9892620ce5 Add a simple map type RenderOptions to help users remember it easier 2016-07-13 14:59:37 +03:00
Makis Maropoulos
b99afb2875 Update to v4.0.0-alpha.1 2016-07-13 06:28:09 +03:00
Makis Maropoulos
230d063e6d fix tests 2016-07-08 22:11:57 +02: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
6761d58e53 Final v3 2016-07-08 19:41:50 +02:00
Makis Maropoulos
e3b2c68085 Parse server's addr before use it 2016-07-07 17:17:34 +02: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
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
Makis Maropoulos
50b1366e9d improve the flash messages test 2016-07-02 15:16:42 +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
781abb00ea Fix https://github.com/kataras/iris/issues/244 and some more things 2016-06-30 14:26:42 +03: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