Start work on routing

This commit is contained in:
Jordan Bancino 2022-09-23 08:06:24 -04:00
parent f6dcea6a2f
commit 55967c2d75

View file

@ -43,9 +43,14 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
HashMap *response;
char *requestPath;
Array *pathParts;
requestPath = HttpRequestPath(context);
Log(lc, LOG_MESSAGE, "%s %s",
HttpRequestMethodToString(HttpRequestMethodGet(context)),
HttpRequestPath(context));
requestPath);
LogConfigIndent(lc);
Log(lc, LOG_DEBUG, "Request headers:");
@ -79,6 +84,10 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
goto finish;
}
pathParts = ArrayCreate();
/* TODO: Route requests here */
HttpSendHeaders(context);