Module mochiweb_cookies

HTTP Cookie parsing and generating (RFC 2109, RFC 2965).

Copyright © 2007 Mochi Media, Inc.

Authors: Emad El-Haraty (emad@mochimedia.com).

Description

HTTP Cookie parsing and generating (RFC 2109, RFC 2965).

Data Types

header()

header() = {Name::string(), Value::string()}

proplist()

proplist() = [{Key::string(), Value::string()}]

Function Index

cookie/2Short-hand for cookie(Key, Value, []).
cookie/3Generate a Set-Cookie header field tuple.
parse_cookie/1Parse the contents of a Cookie header field, ignoring cookie attributes, and return a simple property list.
test/0Run tests for mochiweb_cookies.

Function Details

cookie/2

cookie(Key::string(), Value::string()) -> header()

Short-hand for cookie(Key, Value, []).

cookie/3

cookie(Key::string(), Value::string(), Options::[Option]) -> header()

Generate a Set-Cookie header field tuple.

parse_cookie/1

parse_cookie(Cookie::string()) -> [{K::string(), V::string()}]

Parse the contents of a Cookie header field, ignoring cookie attributes, and return a simple property list.

test/0

test() -> ok

Run tests for mochiweb_cookies.


Generated by EDoc, Aug 8 2008, 22:08:36.