From 3b19a7b951947503319817f9975ba805ffb958c6 Mon Sep 17 00:00:00 2001 From: Jordan West Date: Thu, 23 Feb 2012 14:46:40 -0800 Subject: [PATCH] filling in some more of the Request and Response --- .gitignore | 2 +- .../scala/com/something/lift/NothingServerHandler.scala | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6e5368f..ee7e1d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ - +project/target .idea* \ No newline at end of file diff --git a/src/main/scala/com/something/lift/NothingServerHandler.scala b/src/main/scala/com/something/lift/NothingServerHandler.scala index d815b40..81d99ae 100644 --- a/src/main/scala/com/something/lift/NothingServerHandler.scala +++ b/src/main/scala/com/something/lift/NothingServerHandler.scala @@ -166,7 +166,7 @@ class NettyHttpRequest extends HTTPRequest { * @return - all header parameters present in this request. Nil if no * headers are used. */ - def headers: List[HTTPParam] = throw new Exception("Implement me") + def headers: List[HTTPParam] = Nil //TODO FIXME // throw new Exception("Implement me") /** * @return - the context path. Similar with HttpServletRequest.getContextPath. @@ -278,7 +278,7 @@ class NettyHttpRequest extends HTTPRequest { * @return - Some[Any] if this is a resumed request, return the state * associated with it. */ - def resumeInfo : Option[(Req, LiftResponse)] = throw new Exception("Implement me") // FIXME trivial support + def resumeInfo : Option[(Req, LiftResponse)] = None // FIXME trivial support /** * Suspend the curent request and resume it after a given timeout @@ -341,7 +341,7 @@ class NettyHttpRequest extends HTTPRequest { * * @param cookies - the list of response cookies */ - def addCookies(cookies: List[HTTPCookie]) = throw new Exception("Implement me") + def addCookies(cookies: List[HTTPCookie]) {} // FIXME // throw new Exception("Implement me") /** * Encodes the URL such that it adds the session ID if it is necessary to the URL. @@ -357,7 +357,7 @@ class NettyHttpRequest extends HTTPRequest { * * @param headers - the list of headers */ - def addHeaders(headers: List[HTTPParam]) = throw new Exception("Implement me") + def addHeaders(headers: List[HTTPParam]) {} // FIXME // throw new Exception("Implement me") /** * Sets the HTTP response status