An attempt to fix markdown formatting

This commit is contained in:
Aliaksandr Valialkin
2015-12-01 19:19:28 +02:00
parent f7e1344103
commit bb2a7ef7e0
+3 -4
View File
@@ -147,15 +147,14 @@ requestHandler := func(ctx *fasthttp.RequestCtx) {
* net/http -> fasthttp conversion cheat sheet:
```go
// all the pseudocode below assumes w, r and ctx have these types
var (
* All the pseudocode below assumes w, r and ctx have these types:
```go
var {
w http.ResponseWriter
r *http.Request
ctx *fasthttp.RequestCtx
)
```
* r.Body -> [ctx.Request.Body()](https://godoc.org/github.com/valyala/fasthttp#Request.Body)
* r.URL.Path -> [ctx.Path()](https://godoc.org/github.com/valyala/fasthttp#RequestCtx.Path)
* r.URL -> [ctx.URI()](https://godoc.org/github.com/valyala/fasthttp#RequestCtx.URI)