MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / saveHeader

Method saveHeader

buildtools/classes/Generator/CoroGenerator.php:117–121  ·  view source on GitHub ↗

* @inheritDoc */

(string $content)

Source from the content-addressed store, hash-verified

115 * @inheritDoc
116 */
117 public function saveHeader(string $content): void
118 {
119 $content .= "[[nodiscard]] async<http_request_completion_t> co_request(const std::string &url, http_method method, const std::string &postdata = \"\", const std::string &mimetype = \"text/plain\", const std::multimap<std::string, std::string> &headers = {}, const std::string &protocol = \"1.1\");\n\n";
120 file_put_contents('include/dpp/cluster_coro_calls.h', $content);
121 }
122
123 /**
124 * @inheritDoc

Callers 1

make_struct.phpFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected