Network.DomainAuth.PRD
Description
Utilities to decide Purported Responsible Domain (http://www.ietf.org/rfc/rfc4407).
- data PRD
- initialPRD :: PRD
- pushPRD :: RawFieldKey -> RawFieldValue -> PRD -> PRD
- decidePRD :: PRD -> Maybe Domain
- decideFrom :: PRD -> Maybe Domain
- extractDomain :: RawFieldValue -> Maybe Domain
Documentation
Abstract type for context to decide PRD(purported responsible domain) according to RFC 4407.
Initial context of PRD.
pushPRD :: RawFieldKey -> RawFieldValue -> PRD -> PRDSource
Pushing a field key and its value in to the PRD 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.