domain-auth-0.2.1: Domain authentication library

Safe HaskellNone

Network.DomainAuth.PRD

Description

Utilities to decide Purported Responsible Domain (http://www.ietf.org/rfc/rfc4407).

Synopsis

Documentation

data PRD Source

Abstract type for context to decide PRD(purported responsible domain) according to RFC 4407.

Instances

initialPRD :: PRDSource

Initial context of PRD.

pushPRD :: RawFieldKey -> RawFieldValue -> PRD -> PRDSource

Pushing a field key and its value in to the PRD context.

decidePRD :: PRD -> Maybe DomainSource

Deciding PRD from the RPD context.

decideFrom :: PRD -> Maybe DomainSource

Taking the value of From: from the RPD context.

extractDomain :: RawFieldValue -> Maybe DomainSource

Extract a domain from a value of a header field.