From 29091a54b46b02e76a61bb65657c57d4ae45542c Mon Sep 17 00:00:00 2001 From: Fenny Date: Fri, 31 Jan 2020 15:19:57 -0500 Subject: [PATCH] Bump v1.2.2 --- application.go | 4 +- docs/context.md | 2 +- docs/index.html | 2 +- go.sum | 1 + listen.go | 102 ++++++++++++++++++++---------------------------- request.go | 4 -- response.go | 19 ++++----- types.go | 1 + utils.go | 3 +- 9 files changed, 61 insertions(+), 77 deletions(-) diff --git a/application.go b/application.go index c52f270f..b21d630d 100644 --- a/application.go +++ b/application.go @@ -13,7 +13,7 @@ import ( ) const ( - Version = "1.2.1" + Version = "1.2.2" // https://play.golang.org/p/r6GNeV1gbH banner = "" + " \x1b[1;32m _____ _ _\n" + @@ -38,6 +38,7 @@ type Fiber struct { Engine *engine // https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ Prefork bool + child bool // Stores all routes routes []*route } @@ -72,6 +73,7 @@ func New() *Fiber { Server: "", Banner: true, Prefork: *prefork, + child: *child, Engine: &engine{ Concurrency: 256 * 1024, DisableKeepAlive: false, diff --git a/docs/context.md b/docs/context.md index a4f55829..cb092b2f 100644 --- a/docs/context.md +++ b/docs/context.md @@ -827,7 +827,7 @@ Sends the HTTP response. The Send parameters can be of any type ```go // Function signature -c.Send(bodies ...interface{}) +c.Send(body ...interface{}) // Example app.Get("/", func(c *fiber.Ctx) { diff --git a/docs/index.html b/docs/index.html index 352d329e..38d0a535 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@