Merge pull request #72 from askn/response

remove unused methods
This commit is contained in:
Serdar Dogruyol 2016-02-02 17:25:56 +02:00
commit a4005e98be
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