remove unused methods

This commit is contained in:
Aşkın Gedik 2016-02-02 17:20:44 +02:00
parent ce08b3a406
commit 8390b96df3
2 changed files with 0 additions and 16 deletions

View file

@ -32,7 +32,6 @@ class Kemal::Handler < HTTP::Handler
route = lookup.payload as Route route = lookup.payload as Route
context.request.url_params = lookup.params context.request.url_params = lookup.params
begin begin
context.response.content_type = "text/html"
body = route.handler.call(context).to_s body = route.handler.call(context).to_s
context.response.print body context.response.print body
return context return context

View file

@ -1,15 +0,0 @@
class Kemal::Response
property headers
property status_code
property content_type
def initialize
@status_code = 200
@content_type = "text/html"
@headers = HTTP::Headers{"Content-Type": @content_type}
end
def content_type=(content_type)
@headers["Content-Type"] = content_type
end
end