gitea/services/context
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
..
upload Include file extension checks in attachment API (#32151) 2024-11-06 21:34:32 +00:00
access_log.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
api_org.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
base.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
base_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
captcha.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
context.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
context_cookie.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_model.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_request.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_response.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00
context_template.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
context_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
csrf.go Refactor CSRF token (#32216) 2024-10-10 03:48:21 +00:00
org.go Refactor markup render system (#32589) 2024-11-22 05:48:09 +00:00
package.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
pagination.go Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00:00
permission.go Allow maintainers to view and edit files of private repos when "Allow maintainers to edit" is enabled (#32215) 2024-10-11 19:08:19 +00:00
private.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
repo.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
response.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
user.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
utils.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
xsrf.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
xsrf_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00