Initial commit
This commit is contained in:
61
application/source/request.c
Normal file
61
application/source/request.c
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
#include "headers.h"
|
||||
|
||||
|
||||
#define BUFFER_SIZE 1024
|
||||
|
||||
class request{
|
||||
|
||||
char * connection = malloc( BUFFER_SIZE );
|
||||
|
||||
char * address = malloc( BUFFER_SIZE );
|
||||
|
||||
int port;
|
||||
|
||||
char * url = malloc( BUFFER_SIZE );
|
||||
|
||||
char * method = malloc( BUFFER_SIZE );
|
||||
|
||||
char * version = malloc( BUFFER_SIZE );
|
||||
|
||||
char * mimeType = malloc( BUFFER_SIZE );
|
||||
|
||||
char * extension = malloc( BUFFER_SIZE );
|
||||
|
||||
struct headerManager * headers = new headerManager();
|
||||
|
||||
void constructor() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
free() {
|
||||
|
||||
|
||||
/*
|
||||
free( this->connection );
|
||||
|
||||
free( this->address );
|
||||
|
||||
free( this->port );
|
||||
|
||||
free( this->url );
|
||||
|
||||
free( this->method );
|
||||
|
||||
free( this->version );
|
||||
|
||||
free( this->mimeType );
|
||||
|
||||
free( this->headers );
|
||||
|
||||
*/
|
||||
|
||||
free( this );
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user