THPDFCABINetworkTimestampOptionsV1 Record
Enterprise edition: this API belongs to HotPDF Enterprise (HotPDFEnt / Lib\Enterprise); lower editions leave it out or raise EHPDFEnterpriseRequired
Versioned options record sitting behind the C struct hpdf_network_timestamp_options_v1, used to configure an explicit instance of the built-in RFC 3161 HTTP/HTTPS timestamp transport
THPDFCABINetworkTimestampOptionsV1 = record
StructSize, ABIVersion: UInt32;
Flags, MaxResponseBytes: UInt64;
TimeoutMS, MaxRedirects: UInt32;
URL: PAnsiChar;
URLLength: NativeUInt;
UserAgent: PAnsiChar;
UserAgentLength: NativeUInt;
end;
Declared in HPDFCAPI (Windows) and HPDFHeadlessCAPI (POSIX Linux), mirroring hpdf_network_timestamp_options_v1 from hotpdf_abi.h (48 bytes on 32-bit targets, 64 bytes on 64-bit targets)
StructSize: set this toSizeOf(THPDFCABINetworkTimestampOptionsV1)(sizeof(hpdf_network_timestamp_options_v1))ABIVersion: must equalHPDF_ABI_VERSION_1($00010000)Flags: must be0in ABI v1MaxResponseBytes: largest accepted HTTP response body in bytes (up to 64 MiB;0chooses 4 MiB)TimeoutMS: bounded resolve/connect/send/receive timeout in milliseconds (up to 300000 ms;0chooses 15000 ms)MaxRedirects: how many HTTP redirects may be followed (up to 16;0chooses 5)URL/URLLength: a valid UTF-8http://orhttps://TSA endpoint free of NUL bytes and control characters (1..8192 bytes)UserAgent/UserAgentLength: optional UTF-8 User-Agent header value (up to 1024 bytes, no CR/LF/NUL)
Hand the record to hpdf_network_timestamp_transport_create_v1, run requests through hpdf_network_timestamp_transport_v1, then release it with hpdf_network_timestamp_transport_destroy