whesteel.blogg.se

The rack app
The rack app













the rack app

The status contains the HTTP status codes such as 200,404.The rack server object returns a response which contains three parts: the status, headers and the body. In addition to these, the server can store their own data in the environment. In case the application is being used as a middleware, the environment can have objects that would provide session information, logging capabilities, information on the size of the data that can be used for read and writes etc. Information on the server expectations and capabilities (capability of the server for connection hijacking).Information like if the application object is simultaneously invoked from another thread or process.The URL scheme that is used, that is, if the request that is received is http or https.The version of the Rack application that is running.The HTTP metavariables that are received from the client.Server information like the server name and server port.The URL information(information that would direct to the application, information that directs to the actual location in the application, Query string).The environment that is taken as argument by the call method refers to an object that has: The call method takes in the environment object as argument and returns the Rack response object.

the rack app

The characteristics of a Rack application is that the application object responds to the call method.















The rack app