Add some random articles happened to be fetched the last two weeks

This commit is contained in:
Gerasimos Maropoulos 2016-10-25 18:47:19 +03:00
parent ee9b153f6d
commit 6d65c00423
2 changed files with 9 additions and 1 deletions

View File

@ -49,6 +49,12 @@ Ideally suited for both experienced and novice Developers.
- [赵 益鋆](https://github.com/se77en) donated 20 EUR at October 21
- Anonymous (by own will) donated 50 EUR at October 21
**Random articles**
- [20 Minute URL Shortener with Go and Redis - Iris+Docker+Redis](https://www.kieranajp.uk/articles/build-url-shortener-api-golang/) by Kieran Patel
- [The fastest web framework for Go](http://marcoscleison.xyz/the-fastest-web-framework-for-go-in-this-earth/) by Marcos Cleison
- [Iris vs Nginx vs Php vs Nodejs](https://www.ntossapo.me/2016/08/13/nginx-vs-nginx-php-fpm-vs-go-iris-vs-express-with-wrk/) by Tossapon Nuanchuay
## Feature Overview
- Focus on high performance

View File

@ -775,6 +775,8 @@ func (ctx *Context) Stream(cb func(writer *bufio.Writer)) {
// * if response body is streamed from slow external sources.
// * if response body must be streamed to the client in chunks.
// (aka `http server push`).
//
// See also the StreamReader
func (ctx *Context) StreamWriter(cb func(writer *bufio.Writer)) {
ctx.RequestCtx.SetBodyStreamWriter(cb)
}
@ -789,7 +791,7 @@ func (ctx *Context) StreamWriter(cb func(writer *bufio.Writer)) {
// bodyStream.Close() is called after finishing reading all body data
// if it implements io.Closer.
//
// See also StreamReader.
// See also the StreamWriter
func (ctx *Context) StreamReader(bodyStream io.Reader, bodySize int) {
ctx.RequestCtx.Response.SetBodyStream(bodyStream, bodySize)
}