| 1267 | } |
| 1268 | |
| 1269 | Result HttpAsyncClientRequest::setBody(Span<const char> value) |
| 1270 | { |
| 1271 | bodyType = BodyType::Span; |
| 1272 | bodySpan = value; |
| 1273 | bodyStream = nullptr; |
| 1274 | bodyTransform = nullptr; |
| 1275 | contentLength = value.sizeInBytes(); |
| 1276 | contentEncoding = HttpContentEncoding::Identity; |
| 1277 | multipartWriter = nullptr; |
| 1278 | chunkedTransferEncodingEnabled = false; |
| 1279 | return Result(true); |
| 1280 | } |
| 1281 | |
| 1282 | Result HttpAsyncClientRequest::setBody(AsyncReadableStream& stream) |
| 1283 | { |