moved functions around

This commit is contained in:
Pin
2022-03-06 23:08:18 -05:00
parent fc4af96282
commit de1bac616b
12 changed files with 343 additions and 262 deletions

View File

@@ -13,3 +13,4 @@ struct HTTPRequest {
unsigned char *requestBody;
size_t requestBodyLen;
};

View File

@@ -0,0 +1,6 @@
int handleGetRequest(int socket, struct HTTPRequest *r, SSL *ssl);
int handlePUTRequest(int socket, struct HTTPRequest *r, SSL *ssl);
int handleDELETERequest(int socket, struct HTTPRequest *r, SSL *ssl);
int handlePOSTRequest(int socket, struct HTTPRequest *r, SSL *ssl);

View File

@@ -1,4 +1,7 @@
#include <stdbool.h>
extern bool enableHTTPS;
int printDebug(char message[]);
extern bool enableHTTPS;
extern char *WEB_ROOT_DIR;

View File

@@ -1,3 +1,5 @@
int PrintLog(unsigned char *message);
int checkHTTPVersion(char *version);
char *php_cgi(char *sPath, struct HTTPRequest *r);