HTTP-4000.2.18: A library for client-side HTTP

Portabilitynon-portable (not tested)
Stabilityexperimental
MaintainerGanesh Sittampalam <ganesh@earth.li>
Safe HaskellSafe-Inferred

Network.HTTP.Cookie

Description

This module provides the data types and functions for working with HTTP cookies. Right now, it contains mostly functionality needed by Browser.

Synopsis

Documentation

data Cookie Source

Cookie is the Haskell representation of HTTP cookie values. See its relevant specs for authoritative details.

cookieMatch :: (String, String) -> Cookie -> BoolSource

cookieMatch (domain,path) ck performs the standard cookie match wrt the given domain and path.

cookiesToHeader :: [Cookie] -> HeaderSource

cookieToHeaders ck serialises Cookies to an HTTP request header.

processCookieHeaders :: String -> [Header] -> ([String], [Cookie])Source

processCookieHeaders dom hdrs