MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / is_multipart_form_data

Method is_multipart_form_data

examples/server/httplib.h:4874–4877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4872}
4873
4874inline bool Request::is_multipart_form_data() const {
4875 const auto &content_type = get_header_value("Content-Type");
4876 return !content_type.rfind("multipart/form-data", 0);
4877}
4878
4879inline bool Request::has_file(const std::string &key) const {
4880 return files.find(key) != files.end();

Callers 1

read_content_coreMethod · 0.80

Calls 1

get_header_valueFunction · 0.85

Tested by

no test coverage detected