MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / setExpectedBodyLength

Method setExpectedBodyLength

Libraries/Http/HttpConnection.cpp:1256–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254}
1255
1256Result 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
1269Result HttpAsyncClientRequest::setBody(Span<const char> value)
1270{

Callers 1

putWritableBodyMethod · 0.80

Calls 1

ResultClass · 0.50

Tested by 1

putWritableBodyMethod · 0.64