【文件属性】:
文件名称:bs-cookie-parser:ReasonML中的cookie解析器绑定
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-09 09:28:08
OCaml
bs-cookie-parser
ReasonML中的绑定
例子
let app = Express . express () ;
App . use(app , CookieParser . make () ) ;
App . listen(app , ~port = 3000 ) ;
安装
npm install --save bs-cookie-parser bs-express将bs-cookier-parser和bs-express添加到bsconfig.json。 例如:
{
...
"bs-dependencies": [
"bs-express",
"bs-cookie-parser"
]
}
开发中的测试
在一个终端中:
npm run start
在第二个航站楼:
cd tests && ./test.sh
测试依赖于查询exampl
【文件预览】:
bs-cookie-parser-master
----example()
--------Index.re(3KB)
----package.json(889B)
----tests()
--------reference.data(104B)
--------test.sh(856B)
----src()
--------CookieParser.re(300B)
--------CookieParser.rei(205B)
----bsconfig.json(224B)
----.gitignore(71B)
----README.md(684B)