codeguy/Slim — Issue #238: use Response object for onion
Author: KampfCaspar
Created: 2012-02-03 12:37:38+00:00
State: open

Hi!

By switching to the onion model, it seems, you left the response object model...

Rather than returning the triplet status,headers,body and then handling communication in the main class, I suggest:
a) sending a Response object 'down the onion', which encapsulates all of the above (and optionally more, like logging)
b) letting the response object handle client communication (like cgi vs. apachemod vs. fcgi vs. cli)

HP