看mochiweb的代码,感觉很绕,纳闷为什么不搞成清晰的recv、send,搞了一堆回调。。。
http://www.iteye.com/topic/348379
http://www.pagefault.info/?p=395
Req:ok() mochiweb_request:ok() mochiweb_request:respond(): mochiweb_request:start_raw_response() send(Response头和头域) send(Body), mochiweb:new_response()