mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-15 16:07:51 +03:00
An attempt to fix markdown formatting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user