UNPKG

@justgage/reason-cookie

Version:

a simple way to use cross-browser cookies that contain JSON.

86 lines (62 loc) 4.2 kB
<!doctype html> <meta charset=utf8> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel=stylesheet href='../styles.css'> <script defer src='../script.js'></script> <title>Cookie-JustgageReasonCookie</title> <body> <script>window.relativeToRoot=".."</script> <div id='error-message'> ⚠️ Oops! This page doesn't appear to define a <span>type</span> called <code>_</code>. </div> <script>window.shouldCheckHashes=true</script> <div class='container'> <div class='sidebar-wrapper'> <div class='sidebar-expander'>Show navigation</div> <div class='sidebar'> <a href="../search.html" style="display: block; padding: 0 8px;">Search</a> <div class='docs-listing'><a href="../index.html">Home</a></div> <div class='table-of-contents'> <div class='toc-header'>Page Contents</div> <a href="#Cookie-JustgageReasonCookie" class='level-1 header'>Cookie-JustgageReasonCookie</a> <a href="#value-setJson" class='level-2 value'>setJson</a> <a href="#type-config" class='level-2 type'>config</a> <a href="#value-makeConfig" class='level-2 value'>makeConfig</a> <a href="#value-remove" class='level-2 value'>remove</a> <a href="#value-setJsonConfig" class='level-2 value'>setJsonConfig</a> <a href="#value-setString" class='level-2 value'>setString</a> <a href="#value-getAsString" class='level-2 value'>getAsString</a> <a href="#value-getAsJson" class='level-2 value'>getAsJson</a> </div> <div class='project-listing'><div class='project-title'>Package modules</div><a href="CookieTest-JustgageReasonCookie.html">CookieTest-JustgageReasonCookie</a> <a href="JustgageReasonCookie.html">JustgageReasonCookie</a> <a href="Cookie-JustgageReasonCookie.html">Cookie-JustgageReasonCookie</a> <a href="Example-JustgageReasonCookie.html">Example-JustgageReasonCookie</a></div> </div> </div> <div class='main'> <a href="#Cookie-JustgageReasonCookie" id="Cookie-JustgageReasonCookie"><h1>Cookie-JustgageReasonCookie</h1></a> <p><span class='missing'>This module does not have a toplevel documentation block.</span></p> <div class='doc-item'><h4 class='item'>let <a href="#value-setJson" id="value-setJson">setJson</a> = (string, Js.Json.t) => unit</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>type <a href="#type-config" id="type-config">config</a></h4> <div class='body body-empty'><span class='missing'>No documentation for this type</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-makeConfig" id="value-makeConfig">makeConfig</a> = ( ~?expires: option(int), ~?path: option(string), unit ) => <a href="#type-config">config</a></h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-remove" id="value-remove">remove</a> = (string) => unit</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-setJsonConfig" id="value-setJsonConfig">setJsonConfig</a> = (string, Js.Json.t, <a href="#type-config">config</a>) => unit</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-setString" id="value-setString">setString</a> = (string, string) => unit</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-getAsString" id="value-getAsString">getAsString</a> = (string) => option(string)</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> <div class='doc-item'><h4 class='item'>let <a href="#value-getAsJson" id="value-getAsJson">getAsJson</a> = (string) => option(Js.Json.t)</h4> <div class='body body-empty'><span class='missing'>No documentation for this value</span></div></div> </div> <div class='right-blank'></div> </div>