Migrating from gofiber to net/http -- the plan¶
Archived Content
This document has been archived and may contain outdated information. Please refer to the main documentation for up-to-date information.
Tips¶
- To access
/:abc
, user.PathValue("abc")
. - Want to associate arbitrary value with a request? Use
r.Context.Value()
. - Don't use
r.Response
. It'snil
. - Only use the following HTTP status codes:
- 303 StatusSeeOther: set method to GET
- 307 StatusTemporaryRedirect: method and body not changed
- 308 StatusPermanentRedirect: method and body not changed
todo¶
- add caching
- add limiter (maybe it should be in nginx)
- check if everything works
- templating (this has tests)
- search, artworks, users
- novels and novel settings
- settings
- what else?