MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / write_multipart_ranges_data

Function write_multipart_ranges_data

dependencies/httplib/httplib.h:4127–4140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4125
4126template <typename T>
4127inline bool write_multipart_ranges_data(Stream &strm, const Request &req,
4128 Response &res,
4129 const std::string &boundary,
4130 const std::string &content_type,
4131 const T &is_shutting_down) {
4132 return process_multipart_ranges_data(
4133 req, res, boundary, content_type,
4134 [&](const std::string &token) { strm.write(token); },
4135 [&](const char *token) { strm.write(token); },
4136 [&](size_t offset, size_t length) {
4137 return write_content(strm, res.content_provider_, offset, length,
4138 is_shutting_down);
4139 });
4140}
4141
4142inline std::pair<size_t, size_t>
4143get_range_offset_and_length(const Request &req, const Response &res,

Callers 1

Calls 3

write_contentFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected