MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / HTTPPacket

Method HTTPPacket

MonaCore/sources/HTTP/HTTPPacket.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29HTTPPacket::HTTPPacket(const string& rootPath) : accessControlRequestMethod(0), accessControlRequestHeaders(NULL),
30 file(rootPath), _data(NULL), _size(0),
31 content(NULL),
32 contentLength(0),
33 contentType(HTTP::CONTENT_ABSENT),
34 command(HTTP::COMMAND_UNKNOWN),
35 version(0),
36 connection(HTTP::CONNECTION_ABSENT),
37 ifModifiedSince(0) {
38
39}
40
41void HTTPPacket::parseHeader(Exception& ex,const char* key, const char* value) {
42 if (String::ICompare(key,"content-length")==0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected