dotweb icon indicating copy to clipboard operation
dotweb copied to clipboard

session问题

Open a526757124 opened this issue 7 years ago • 5 comments

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

a526757124 avatar Mar 27 '17 01:03 a526757124

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

taixs avatar Mar 27 '17 14:03 taixs

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

devfeel avatar Mar 28 '17 03:03 devfeel

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

devfeel avatar Mar 28 '17 03:03 devfeel

@a526757124 I will implement this function on next version

devfeel avatar Mar 28 '17 03:03 devfeel

@devfeel 收到,谢谢解答。

taixs avatar Mar 28 '17 04:03 taixs