4 ms·
From the blog on the rack website: "Rack aims to provide a minimal API for connecting web servers and web frameworks." The PHP SAPI handles the HTTP request an
by xd 16y ago
From the blog on the rack website: "Rack aims to provide a minimal API for connecting web servers and web frameworks."
The PHP SAPI handles the HTTP request and dissolves it into super globals for the environment to consume. This is all you need to handle a HTTP request. It just doesn't get any more minimal than that.
You can, if you want, take it a step further and add request routing, i.e. http://framework.zend.com/manual/en/zend.controller.router.html http://framework.zend.com/manual/en/zend.controller.router.h...
- AffableSpatula 16y agoRack is about composition and modularity of the request handling components, not just providing programmatic access to properties of an http request.