summaryrefslogtreecommitdiffstats
path: root/modules/web/types/response.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/web/types/response.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/web/types/response.go b/modules/web/types/response.go
new file mode 100644
index 0000000..834f491
--- /dev/null
+++ b/modules/web/types/response.go
@@ -0,0 +1,10 @@
+// Copyright 2023 The Gitea Authors. All rights reserved.
+// SPDX-License-Identifier: MIT
+
+package types
+
+// ResponseStatusProvider is an interface to get the written status in the response
+// Many packages need this interface, so put it in the separate package to avoid import cycle
+type ResponseStatusProvider interface {
+ WrittenStatus() int
+}