[Simpleweb-Support] Send handle(Request req, Response resp) return value first then send response la
Brought to you by:
niallg
From: bagas <ba...@in...> - 2004-07-09 03:52:30
|
Hi, Would send handle(Request req, Response resp) return value first then send response later cause any problems? I am writing a program that some how act like this : public void handle(Request req, Response resp) { /// from ProtocolHandler .. { new Thread() { public void run() { // do something that requires some time, so that http response will be send after the return value returned // //resp send something } }.start(); return true; } would somehow I can't use the "Response resp"? Thank you, Rahmat B. S |