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).

NameKindItems
HttpRequeststruct6
HttpResponsestruct4

Free functions and typedefs

using SocketHandle = SOCKET;
using SocketHandle = int;
inline void setNonBlocking(SocketHandle sock)
inline void closeSocket(SocketHandle sock) noexcept
inline 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 method
std::string path
std::string rawPath
std::string body
std::map<std::string, std::string> params
std::map<std::string, std::string> headers
struct HttpResponse 4
int status = 200
std::string contentType = "application/json"
std::vector<std::uint8_t> body
void setBody(const std::string& text)

Sourced from docs/API_CATALOG.md, auto-generated by tools/generate_api_catalog.py.