Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

session问题 #7

Open
a526757124 opened this issue Mar 27, 2017 · 5 comments
Open

session问题 #7

a526757124 opened this issue Mar 27, 2017 · 5 comments

Comments

@a526757124
Copy link

建议增加以cookie作为存储介质的session

@taixs
Copy link

taixs commented Mar 27, 2017

搭车问一下:
为什么要用dotserver.HttpServer.Router().GET这么长语句,
而不是dotserver.GET呢?

@devfeel
Copy link
Owner

devfeel commented Mar 28, 2017

@DBSN 目前的结构,是App->HttpServer->Router 之前在Server层做了代理函数,比如HttpServer.Get;这么做主要考虑两方面:一方面考虑架构清晰,另外一方面也考虑到路由方法毕竟不是常用,一般只要设置好就不太会变,所以考虑再三,还是使用dotapp.HttpServer.Router().GET这种方式

@devfeel
Copy link
Owner

devfeel commented Mar 28, 2017

@DBSN 另外,其实如果作为工程化的项目,更建议使用配置文件方式设置路由:)

@devfeel
Copy link
Owner

devfeel commented Mar 28, 2017

@a526757124 I will implement this function on next version

@taixs
Copy link

taixs commented Mar 28, 2017

@devfeel 收到,谢谢解答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants