diff --git a/src/webserver.c b/src/webserver.c new file mode 100644 index 0000000..03ea5cd --- /dev/null +++ b/src/webserver.c @@ -0,0 +1,7 @@ +#include "webserver.h" + +char* webserverGetResponse( Request *req ){ + Response *rsp = newResponse(); + responseSetBody(rsp, "Test", 1); + return responseToString(rsp); +} diff --git a/src/webserver.h b/src/webserver.h new file mode 100644 index 0000000..f651743 --- /dev/null +++ b/src/webserver.h @@ -0,0 +1,16 @@ +#ifndef WEBSERVER_H +#define WEBSERVER_H + +#include +#include + +#include "request.h" +#include "response.h" + +char* webserverGetResponse( Request *req ); + +#endif /* ifndef WEBSERVER_H + +include "stdlib.h" +include "stdio.h" + */