| 107 | } |
| 108 | |
| 109 | void memwrite(std::span<char> &buf, std::string_view content) { |
| 110 | assert(buf.size() >= content.size()); |
| 111 | std::memcpy(buf.data(), content.data(), content.size()); |
| 112 | buf = {buf.begin() + ssize_t(content.size()), buf.end()}; |
| 113 | } |
| 114 | |
| 115 | /* |
| 116 | * Sends the HTTP 200 OK header, the server string, for a few types of files, it |
no test coverage detected