Safe Haskell | None |
---|---|
Language | Haskell2010 |
- header :: Parser RecordHeader
- encodeHeader :: RecordHeader -> Builder
- data RecordHeader = RecordHeader {
- _recWarcVersion :: Version
- _recHeaders :: [Field]
- data Version = Version {
- versionMajor, versionMinor :: !Int
- data WarcType
- newtype RecordId = RecordId Uri
- data TruncationReason
- data Digest = Digest {}
- newtype Uri = Uri ByteString
- data Field
- = WarcRecordId !RecordId
- | ContentLength !Integer
- | WarcDate !UTCTime
- | WarcType !WarcType
- | ContentType !ByteString
- | WarcConcurrentTo !RecordId
- | WarcBlockDigest !Digest
- | WarcPayloadDigest !Digest
- | WarcIpAddress !ByteString
- | WarcRefersTo !Uri
- | WarcTargetUri !Uri
- | WarcTruncated !TruncationReason
- | WarcWarcinfoId !RecordId
- | WarcFilename !Text
- | WarcProfile !Uri
- | WarcIdentifiedPayloadType !ByteString
- | WarcSegmentNumber !Integer
- | WarcSegmentOriginId !ByteString
- | WarcSegmentTotalLength !Integer
- _WarcRecordId :: Prism' Field RecordId
- _ContentLength :: Prism' Field Integer
- _WarcDate :: Prism' Field UTCTime
- _WarcType :: Prism' Field WarcType
- _ContentType :: Prism' Field ByteString
- _WarcConcurrentTo :: Prism' Field RecordId
- _WarcBlockDigest :: Prism' Field Digest
- _WarcPayloadDigest :: Prism' Field Digest
- _WarcIpAddress :: Prism' Field ByteString
- _WarcRefersTo :: Prism' Field Uri
- _WarcTargetUri :: Prism' Field Uri
- _WarcTruncated :: Prism' Field TruncationReason
- _WarcWarcinfoId :: Prism' Field RecordId
- _WarcFilename :: Prism' Field Text
- _WarcProfile :: Prism' Field Uri
- _WarcIdentifiedPayloadType :: Prism' Field ByteString
- _WarcSegmentNumber :: Prism' Field Integer
- _WarcSegmentOriginId :: Prism' Field ByteString
- _WarcSegmentTotalLength :: Prism' Field Integer
- recWarcVersion :: Lens' RecordHeader Version
- recHeaders :: Lens' RecordHeader [Field]
Parsing
header :: Parser RecordHeader Source #
A WARC header
Encoding
encodeHeader :: RecordHeader -> Builder Source #
Types
data RecordHeader Source #
data TruncationReason Source #
Header field types
Prisms
Lenses
recHeaders :: Lens' RecordHeader [Field] Source #