The Request object in Luca exposes the following collections: Query, Form, Headers, Server and Cookies. It also exposes the Path for the request and the Method, these two properties are used by the application to get a function handler to deal with the request.
|Luca Request||ASP.NET Request|
The keys are all lowercase, no matter if you pass them uppercase, mixed case or whatever, at the moment of encoding into an object Luca will make everything lowercase.
If you pass the same key more than once, you will get an array as the value of the key.
At the moment Luca will return a strings or an array of strings as the value of any of the parameters for these collections (it may change in the future).
If the key doesn’t exist null will be returned. It’s good form to use a guard to read from these collections with a default value when appropriated.
What happened with the rest of the request?
As I develop the framework most and most of the properties of the request will be implemented, (ex: Files collection, IsAuthenticated, Referer, UserAgent, etc.)