Skip to content

Commit

Permalink
Move documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Mar 10, 2017
1 parent 4c57f54 commit 35ba303
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Expand Up @@ -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
----------

Expand Down Expand Up @@ -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.

0 comments on commit 35ba303

Please sign in to comment.