Try response.setHeader() :)
You can't set any headers on the request because once you have access to the request the headers will already have been read by the web server.
// Json
Type: Posts; User: Json
Try response.setHeader() :)
You can't set any headers on the request because once you have access to the request the headers will already have been read by the web server.
// Json
Well in your unit testing you could fire up a jetty webserver and then actually fire off a proper request and let it all work on its own. However you could also create a class that implements the...