HTTP-4000.3.14: 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.Auth

Description

Representing HTTP Auth values in Haskell. Right now, it contains mostly functionality needed by Browser.

Synopsis

Documentation

data Authority Source #

Authority specifies the HTTP Authentication method to use for a given domain/realm; Basic or Digest.

data Algorithm Source #

Algorithm controls the digest algorithm to, MD5 or MD5Session.

Constructors

AlgMD5 
AlgMD5sess 
Instances
Eq Algorithm Source # 
Instance details

Defined in Network.HTTP.Auth

Show Algorithm Source # 
Instance details

Defined in Network.HTTP.Auth

data Qop Source #

 

Constructors

QopAuth 
QopAuthInt 
Instances
Eq Qop Source # 
Instance details

Defined in Network.HTTP.Auth

Methods

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

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

Show Qop Source # 
Instance details

Defined in Network.HTTP.Auth

Methods

showsPrec :: Int -> Qop -> ShowS #

show :: Qop -> String #

showList :: [Qop] -> ShowS #

headerToChallenge :: URI -> Header -> Maybe Challenge Source #

headerToChallenge base www_auth tries to convert the WWW-Authenticate header www_auth into a Challenge value.

withAuthority :: Authority -> Request ty -> String Source #

withAuthority auth req generates a credentials value from the auth Authority, in the context of the given request.

If a client nonce was to be used then this function might need to be of type ... -> BrowserAction String