URL Redirect

This commit is contained in:
2018-05-25 09:15:20 +02:00
parent 272697d9e5
commit c9c053d95a
6 changed files with 439 additions and 175 deletions

47
src/URI.h Normal file
View File

@ -0,0 +1,47 @@
#include <iostream>
#ifndef NECRONDA_PATH
#define NECRONDA_PATH
using namespace std;
class URI {
private:
string webroot;
string reqpath;
string relpath;
string query;
string filepath;
bool queryinit;
public:
URI(string webroot, string reqpath);
string getWebRoot();
string getRelativePath();
string getAbsolutePath();
string getFilePath();
string getRelativeFilePath();
string getNewPath();
FILE *openFile();
string getFilePathInfo();
string getFileType();
bool isStatic();
string getQuery();
bool hasQuery();
};
#endif