function GetEncodingOfStream(AStream: TStream; out ASignatureSize: Integer): TEncoding;
TEncoding GetEncodingOfStream(TStream AStream, int ASignatureSize);
HTTPProd
This is function HTTPProd.GetEncodingOfStream.