| 183 | #endif |
| 184 | |
| 185 | inline void PrepareSocket(SOCKET s, const TRequestSettings& requestSettings = TRequestSettings()) { |
| 186 | if (requestSettings.NoDelay) { |
| 187 | SetNoDelay(s, true); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | bool Compress(TData& data, const TString& compressionScheme) { |
| 192 | if (compressionScheme == "gzip" && data.size() > 23) { // there is no string less than 24 bytes long that might be compressed with gzip |
no test coverage detected