summaryrefslogtreecommitdiff
path: root/server/psr7/response.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/psr7/response.go')
-rw-r--r--server/psr7/response.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/server/psr7/response.go b/server/psr7/response.go
deleted file mode 100644
index c0d739a7..00000000
--- a/server/psr7/response.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package psr7
-
-import (
- "net/http"
-)
-
-type Response struct {
- Status int `json:"status"`
- Headers map[string][]string `json:"headers"`
-}
-
-func (r *Response) Write(w http.ResponseWriter) {
- for k, v := range r.Headers {
- for _, h := range v {
- w.Header().Add(k, h)
-
- }
- }
-
- w.WriteHeader(r.Status)
-}