XinOrigin/moon_warc/codec does not have a README file
pub(all) enum CodecError {
HeaderError(HeaderError)
UnexpectedEof(String)
InvalidTrailingSeparator(String)
InvalidContentLength(String)
LimitExceeded(String)
GzipError(GzipError)
} derive(Eq, Debug)pub struct WarcGzReader {
// private fields
}pub struct WarcReader {
// private fields
}pub(all) struct WarcRecord {
header : WarcHeader
payload : Bytes
offset : Int64
record_length : Int64
} derive(Eq, Debug)fn build_conversion(record_id~ : String, date~ : String, target_uri~ : String, content_type~ : String, payload : Bytes, refers_to? : String, version? : WarcVersion) -> WarcRecordfn build_http_exchange(request_id~ : String, response_id~ : String, metadata_id? : String, date~ : String, target_uri~ : String, request_bytes~ : Bytes, response_bytes~ : Bytes, metadata_bytes? : Bytes, version? : WarcVersion) -> Array[WarcRecord]fn build_metadata(record_id~ : String, date~ : String, target_uri~ : String, payload : Bytes, concurrent_to? : String, version? : WarcVersion) -> WarcRecordfn build_request(record_id~ : String, date~ : String, target_uri~ : String, payload : Bytes, concurrent_to? : String, version? : WarcVersion) -> WarcRecordfn build_resource(record_id~ : String, date~ : String, target_uri~ : String, content_type~ : String, payload : Bytes, version? : WarcVersion) -> WarcRecordfn build_response(record_id~ : String, date~ : String, target_uri~ : String, payload : Bytes, concurrent_to? : String, version? : WarcVersion) -> WarcRecordfn build_revisit(record_id~ : String, date~ : String, target_uri~ : String, profile~ : String, payload_digest~ : String, refers_to? : String, refers_to_target_uri? : String, refers_to_date? : String, payload? : Bytes, version? : WarcVersion) -> WarcRecordfn build_warcinfo(record_id~ : String, date~ : String, payload : Bytes, filename? : String, version? : WarcVersion) -> WarcRecordfn encode_http_exchange_gz(request_id~ : String, response_id~ : String, metadata_id? : String, date~ : String, target_uri~ : String, request_bytes~ : Bytes, response_bytes~ : Bytes, metadata_bytes? : Bytes, version? : WarcVersion, level? : Int) -> Bytesfn make_record(version : WarcVersion, fields : Array[(String, String)], payload : Bytes) -> WarcRecordfn scan_all(raw : BytesView, limits? : ReaderLimits, on_record : (WarcRecord) -> Unit) -> Result[Int64, CodecError]fn scan_all_gz(raw : BytesView, limits? : ReaderLimits, on_record : (WarcRecord) -> Unit) -> Result[Int64, CodecError]Install
Download zipPure-MoonBit ISO 28500 WARC 1.0/1.1 & multi-member Dynamic-Huffman .warc.gz streaming codec, WACZ 1.1.1 manifest builder, SHA-1/SHA-256 verifier, SURT/CDXJ/CDX-11 indexer, §9 segmentation, JSONL exporter, and conformance validator.