문제

Does anybody know if a DataSnap server (using HTTP/HTTPS) built with Delphi XE2 uses GZIP compression for it's responses by default? Is there any way of enabling/disabling this?

도움이 되었습니까?

해결책

DataSnap compression is done using the TDSHTTPService.Filters: (TTransportFilterCollection) You can add several filters, for compression, criptografy, etc.

The built-in compression filter uses ZLib, and the IDE wizard have a option to add it automatically.

Check the TDSHTTPService.Filters property and if the ZLibCompression filter is there, you can remove to disable.

다른 팁

You can add the ZLibCompression filter (via Filter property) to wizard created DSXXXServerTransport1 component. Where XXX represents the protocol.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top