| 1254 | } |
| 1255 | |
| 1256 | Result HttpAsyncClientRequest::setExpectedBodyLength(uint64_t value) |
| 1257 | { |
| 1258 | bodyType = value > 0 ? BodyType::Manual : BodyType::None; |
| 1259 | bodySpan = {}; |
| 1260 | bodyStream = nullptr; |
| 1261 | bodyTransform = nullptr; |
| 1262 | multipartWriter = nullptr; |
| 1263 | contentLength = value; |
| 1264 | contentEncoding = HttpContentEncoding::Identity; |
| 1265 | chunkedTransferEncodingEnabled = false; |
| 1266 | return Result(true); |
| 1267 | } |
| 1268 | |
| 1269 | Result HttpAsyncClientRequest::setBody(Span<const char> value) |
| 1270 | { |