cookie for lua
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/gonapps
LICENSE
README.md
gonapps-cookie-1.1-2.rockspec

README.md

gonapps-cookie

About

Cookie for lua

Usage

installation

$ sudo luarocks install gonapps-cookie

example code

local cookieModule = require "gonapps.cookie"
local cookie = cookieModule.new("aaa=bbb; ccc=ddd; HttpOnly")
if cookie.flags["HttpOnly"] then
    print("HTTP Only Flag")
end
print("ccc", cookie.data["ccc"])
print(cookie:toString())

License

Mozilla Public License 2.0