summaryrefslogtreecommitdiff
path: root/internal/handlers/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/types.go')
-rw-r--r--internal/handlers/types.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/handlers/types.go b/internal/handlers/types.go
index e4670220e..33e096c25 100644
--- a/internal/handlers/types.go
+++ b/internal/handlers/types.go
@@ -1,6 +1,8 @@
package handlers
import (
+ "io"
+
"github.com/authelia/authelia/v4/internal/authentication"
)
@@ -124,3 +126,12 @@ type PassworPolicyBody struct {
RequireNumber bool `json:"require_number"`
RequireSpecial bool `json:"require_special"`
}
+
+type responseWriter interface {
+ SetStatusCode(statusCode int)
+ SetBodyString(body string)
+ SetBody(body []byte)
+ SetContentType(contentType string)
+ SetContentTypeBytes(contentType []byte)
+ SetBodyStream(bodyStream io.Reader, bodySize int)
+}