leptus和cowboy之间某些库的转换

在github上问作者,如何使用cookie,作者回复是,leptus是基于restful的框架,对于cookie和session的支持,建议转换为cowboy用,以下是转换方式

leptus_req:get_req(Req) -> cowboy_req:req()
leptus_req:set_req(Req, CowboyReq) -> ok

 

posted @ 2016-01-27 13:10  自由出土文物  阅读(167)  评论(0编辑  收藏  举报