michael@0: function handleRequest(request, response) { michael@0: var body = "initial"; michael@0: michael@0: try { michael@0: body = request.getHeader("X-Request"); michael@0: } catch(e) { michael@0: body = "request.getHeader() failed! Exception: " + e; michael@0: } michael@0: michael@0: response.setHeader("Cache-Control", "max-age=3600"); michael@0: response.bodyOutputStream.write(body, body.length); michael@0: }