Created HttpHeader

This commit is contained in:
2018-05-09 17:34:57 +02:00
parent 0811d4af39
commit cfadefbbf9
3 changed files with 28 additions and 6 deletions

View File

@ -1,4 +1,4 @@
install:
@echo "Start compiling.."
g++ ./src/necronda-server.cpp -o ./out/necronda-server
@echo "Finished compiling!"
@echo "Start compiling..."
g++ ./src/necronda-server.cpp -o ./bin/necronda-server
@echo "Finished compiling!"

8
run.sh
View File

@ -1,3 +1,7 @@
#!/bin/bash
echo "Building and starting Necronda Server..."
make && ./out/necronda-server
echo "-- Building and starting Necronda Server..."
make && \
echo -e "-- Successfully finished compiling!\n" && \
sleep 0.0625 && \
echo -e "-- Starting Server...\n" && \
./bin/necronda-server

View File

@ -1,7 +1,25 @@
/**
* Necronda Web Server 3.0
* necronda-server.cpp - Main Executable
* Lorenz Stechauner, 2018-05-09
*/
#include <iostream>
#include "http/HttpHeader.cpp"
using namespace std;
int main() {
std::cout << "Hello, World!123" << std::endl;
cout << "Hello, World!1" << endl;
HttpHeader *header = new HttpHeader();
header->setField("Content-Length", "80");
header->setField("Hermann", "500");
cout << header->getField("Content-Length") << " " << header->getField("Hermand") << endl;
return 0;
}