From 35ba3037bc22c2d7740ba678879b952840b2d9cd Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Fri, 10 Mar 2017 09:40:13 +0100 Subject: [PATCH] Move documentation --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 95bc1f4..3c31cdf 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,17 @@ func main() { } ``` +HTTP/2 Support +-------------- + +You can use HTTP/2 support by using the following line instead of app.Listen(): + +``` +app.ListenHttp2("./fullchain.pem", "./privkey.pem") +``` + +Of course, you will have to precize SSL certificate and private key. + Templating ---------- @@ -155,14 +166,3 @@ app.Get("retrieve-data", "/retrieve$", func(context gofast.Context) { fmt.Fprint(response, "{result: 200}") }) ``` - -HTTP/2 Support --------------- - -You can use HTTP/2 support by using the following line instead of app.Listen(): - -``` -app.ListenHttp2("./fullchain.pem", "./privkey.pem") -``` - -Of course, you will have to precize SSL certificate and private key.