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.