Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HttpNormalizeTrailerNames

function HttpNormalizeTrailerNames(const aNames: array of string): tHttpTrailerNames;
The trailer functions below are building blocks the library's HTTP/1.1, HTTP/2 and HTTP/3 code uses to check and encode the trailer fields it SENDS; an application that sends trailers through iHttpUploadTrailersExchange or iHttpResponseTrailers does not call them. Strings carry one octet per character (#0..#255). Each raises eHttpArgumentError on invalid input, leaving its arguments unchanged, and a returned tHttpHeaders belongs to the caller. HttpNormalizeTrailerNames returns aNames validated and lowercased, duplicates dropped, in first-seen order; at most cHttpOutgoingTrailerBytes in all, counting 32 per name.