summaryrefslogtreecommitdiff
path: root/Response.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Response.hs')
-rw-r--r--Response.hs17
1 files changed, 0 insertions, 17 deletions
diff --git a/Response.hs b/Response.hs
deleted file mode 100644
index be347c1..0000000
--- a/Response.hs
+++ /dev/null
@@ -1,17 +0,0 @@
-module Response where
-
-data Response
- = HtmlResponse Int String -- Код возврата, содержимое HTML
- | TextResponse Int String String -- Код возврата, Content-Type, содержимое HTML
- deriving Show
-
-notFoundResponse = HtmlResponse 404 "<strong>404 Not Found</strong>"
-
-getStatusCode (HtmlResponse code _) = code
-getStatusCode (TextResponse code _ _) = code
-
-getContentType (HtmlResponse _ _) = "text/html"
-getContentType (TextResponse _ contentType _) = contentType
-
-getContent (HtmlResponse _ content) = content
-getContent (TextResponse _ _ content) = content \ No newline at end of file