http.cpp


1
#include <iostream>
2
#include <string>
3
#include <cstring>
4
#include "http.hpp"
5
#include "versions/http_v1.1.hpp"
6
#include "../protocol.hpp"
7
8
namespace protocol {
9
10
  protocolVersonMap_t httpVersMap = {
11
    {"HTTP/1.1",&instanceProtocol<http1v1,http>}
12
  };
13
14
  void http::onrecive(const char*const, const size_t){
15
  }
16
17
  http::http(const http& x) : protocol((const protocol&)x) {  }
18
19
  http::http(connection::connection*const x)
20
   : protocol(x)
21
  {
22
    version_major = 0;
23
    version_minor = 0;
24
  }
25
26
}