I try to use Cookie with Opium.
sample code explains how to use Cookie module.
Therefore i wrote a following code.
let test = get "/auth/test" begin fun (_req: Request.t) ->
`String "aaa"
|> respond
|> Cookie.set ~key:"something" ~data:"value"
|> Lwt.return
end
But when i access to that URL, Cookie does not set.
[koji:hello_opium]$ curl -i http://localhost:3000/auth/test
HTTP/1.1 200 OK
access-control-allow-headers: *
access-control-allow-methods: GET,POST,PUT,DELETE,OPTIONS
access-control-allow-origin: http://localhost:3000
content-length: 3
aaa%
[koji:hello_opium]$
Do i miss something?