Commit Graph

61 Commits

Author SHA1 Message Date
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
b99afb2875 Update to v4.0.0-alpha.1 2016-07-13 06:28:09 +03:00
Makis Maropoulos
f841bd4157 https://github.com/kataras/iris/issues/201 2016-06-21 14:18:22 +03:00
Makis Maropoulos
78aa4f7681 Websocket: Add OnError to be able to catch internal errors from the connection 2016-06-18 02:57:18 +03:00
Makis Maropoulos
5d369b7c73 Fix https://github.com/kataras/iris/issues/175 2016-06-17 19:51:17 +03:00
Makis Maropoulos
2942d384c4 Try third to solve https://github.com/kataras/iris/issues/175#issuecomment-226634061 2016-06-17 01:44:16 +03:00
Makis Maropoulos
0d482508fc Add ReadBufferSize and WriteBufferSize to the iris-ws, disable header copy also 2016-06-16 20:08:59 +03:00
Makis Maropoulos
8cddc68993 Fix https://github.com/kataras/iris/issues/175#issuecomment-226290922 2016-06-16 00:13:56 +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
54348e9cc5 Fix https://github.com/kataras/iris/issues/161 2016-05-31 13:50:53 +03:00
Makis Maropoulos
c26668a489 Version 3.0.0-beta cleaned 2016-05-30 17:08:09 +03:00