moved functions around
This commit is contained in:
@@ -13,3 +13,4 @@ struct HTTPRequest {
|
||||
unsigned char *requestBody;
|
||||
size_t requestBodyLen;
|
||||
};
|
||||
|
||||
|
||||
6
include/requestHandlers.h
Normal file
6
include/requestHandlers.h
Normal 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);
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
extern bool enableHTTPS;
|
||||
int printDebug(char message[]);
|
||||
|
||||
extern bool enableHTTPS;
|
||||
extern char *WEB_ROOT_DIR;
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
|
||||
int PrintLog(unsigned char *message);
|
||||
int checkHTTPVersion(char *version);
|
||||
char *php_cgi(char *sPath, struct HTTPRequest *r);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user