1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-08 00:44:26 +00:00
gitea/modules/web
wxiaoguang 6d5aa9218e
Refactor request context (#32956)
Introduce RequestContext: is a short-lived context that is used to store
request-specific data.

RequestContext could be used to clean form tmp files, close context git
repo, and do some tracing in the future.

Then a lot of legacy code could be removed or improved. For example:
most `ctx.Repo.GitRepo.Close()` could be removed because the git repo
could be closed when the request is done.
2024-12-24 11:43:57 +08:00
..
middleware Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
routing Update tool dependencies (#26607) 2023-08-20 22:59:19 +00:00
types Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
handler.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
route_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
route.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
routemock_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
routemock.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00