lvivski / start

Sinatra inspired web development framework for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start provides only indirect access to session data

nkratzke opened this issue · comments

Request class of start does not provide direct access to session data. Therefore accessing session data is unnecessary verbose due to the fact that we have to use input property of Request.

req.input.session['key'] = 'value';

It would be more efficient to do it this way:

req.session['key'] = 'value';

Therefore I propose to introduce the following getter to Request class to overcome unnecessary verbosity.

HttpSession get session => _request.session;

Great idea, thanks. Published.