1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-05 07:24:25 +00:00
gitea/modules/web/middleware
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
..
binding.go Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
cookie.go Delete legacy cookie before setting new cookie (#31306) 2024-06-11 11:31:23 +08:00
data.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
flash.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
locale.go Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
request.go Improve template system and panic recovery (#24461) 2023-05-04 14:36:34 +08:00