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

Method setBody

Libraries/Http/HttpConnection.cpp:1269–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267}
1268
1269Result 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
1282Result HttpAsyncClientRequest::setBody(AsyncReadableStream& stream)
1283{

Callers 7

requestOptionsMethod · 0.80
putStreamBodyMethod · 0.80
putChunkedStreamBodyMethod · 0.80
beginRequestSendMethod · 0.80

Calls 2

ResultClass · 0.50
sizeInBytesMethod · 0.45

Tested by 6

requestOptionsMethod · 0.64
putStreamBodyMethod · 0.64
putChunkedStreamBodyMethod · 0.64