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

Method setMultipart

Libraries/Http/HttpConnection.cpp:1327–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325}
1326
1327void HttpAsyncClientRequest::setMultipart(HttpMultipartWriter& value)
1328{
1329 bodyType = BodyType::Multipart;
1330 bodySpan = {};
1331 bodyStream = nullptr;
1332 bodyTransform = nullptr;
1333 multipartWriter = &value;
1334 contentLength = value.getContentLength();
1335 contentEncoding = HttpContentEncoding::Identity;
1336 chunkedTransferEncodingEnabled = false;
1337}
1338
1339Result HttpAsyncClientRequest::sendHeaders(Function<void(AsyncBufferView::ID)> callback)
1340{

Callers 2

beginRequestSendMethod · 0.80

Calls 1

getContentLengthMethod · 0.45

Tested by 1