Created HttpHeader
This commit is contained in:
6
Makefile
6
Makefile
@ -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
8
run.sh
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user