mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
all type check, no panic
This commit is contained in:
@@ -21,6 +21,10 @@ Idea: we create a compat layer of {w, r} that has the same API as *fiber.Ctx.
|
||||
|
||||
## Tips
|
||||
|
||||
To access `/:abc`, use `r.PathValue("abc")`.
|
||||
- To access `/:abc`, use `r.PathValue("abc")`.
|
||||
- Want to associate arbitrary value with a request? Use `r.Context.Value()`.
|
||||
- Don't use `r.Response`. It's `nil`.
|
||||
|
||||
Want to associate arbitrary value with a request? Use `r.Context.Value()`.
|
||||
## todo
|
||||
|
||||
- correct redirect status codes. currently i put in whatever.
|
||||
|
||||
Reference in New Issue
Block a user