What does the rack handler do?

What does the rack handler do exactly, that is, someone can explain in pseudo-code the steps that the rack handler takes to deliver the result for the request?

+5
source share
1 answer

It processes the headers and contents of HTTP requests, creating an instance of the Request object. It then passes the Request object through middleware and then to the rack application. The rack application creates an instance of the Response object and sends it back through the middleware, and the hander turns it into the headers and contents of the HTTP response.

+4
source

All Articles