HTTP-4000.3.13: A library for client-side HTTP

CopyrightSee LICENSE file
LicenseBSD
MaintainerGanesh Sittampalam <ganesh@earth.li>
Stabilityexperimental
Portabilitynon-portable (not tested)
Safe HaskellSafe
LanguageHaskell98

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 #

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

Instances
Eq Cookie # 
Instance details

Defined in Network.HTTP.Cookie

Methods

(==) :: Cookie -> Cookie -> Bool #

(/=) :: Cookie -> Cookie -> Bool #

Read Cookie # 
Instance details

Defined in Network.HTTP.Cookie

Show Cookie # 
Instance details

Defined in Network.HTTP.Cookie

cookieMatch :: (String, String) -> Cookie -> Bool #

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

cookiesToHeader :: [Cookie] -> Header #

cookieToHeaders ck serialises Cookies to an HTTP request header.

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

processCookieHeaders dom hdrs