mitiru::server
Namespace catalog extracted from docs/API_CATALOG.md (2 types, 17 items).
Namespace catalog extracted from docs/API_CATALOG.md (2 types, 17 items).
| Name | Kind | Items |
|---|---|---|
HttpRequest | struct | 6 |
HttpResponse | struct | 4 |
Free functions and typedefs
using SocketHandle = SOCKET;using SocketHandle = int;inline void setNonBlocking(SocketHandle sock)inline void closeSocket(SocketHandle sock) noexceptinline void setRecvTimeout(SocketHandle sock, int timeoutMs)[[nodiscard]] inline const char* statusText(int code) noexcept[[nodiscard]] inline std::vector<std::uint8_t> buildResponse(const HttpResponse& resp)struct HttpRequest 6
std::string methodstd::string pathstd::string rawPathstd::string bodystd::map<std::string, std::string> paramsstd::map<std::string, std::string> headersstruct HttpResponse 4
int status = 200std::string contentType = "application/json"std::vector<std::uint8_t> bodyvoid setBody(const std::string& text)Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.