SpiecsEngine
 
Loading...
Searching...
No Matches
HttpContext.cpp
Go to the documentation of this file.
1/**
2* @file HttpContext.cpp.
3* @brief The HttpContext Class Implementation.
4* @author Spices & Muduo.
5*/
6
7#include "Pchheader.h"
8#include "HttpContext.h"
9
10namespace Spices {
11
12namespace Net {
13
15 {
17
18 bool ok = true;
19 bool hasMore = true;
20 while (hasMore)
21 {
23 {
24
25 }
26 }
27
28 return ok;
29 }
30
32 {
34
36
37 HttpRequest dummy;
38 m_HttpRequest.Swap(dummy);
39 }
40
41 bool HttpContext::ProcessRequestLine(const char* begin, const char* end)
42 {
44
45 bool succeed = false;
46 const char* start = begin;
47 const char* space = std::find(start, end, ' ');
48
49 return succeed;
50 }
51
52}
53
54}
#define SPICES_PROFILE_ZONE
Wrapper of readwrite buffer.
Definition Buffer.h:19
RequestParseState m_RequestParseState
RequestParseState.
Definition HttpContext.h:69
bool ProcessRequestLine(const char *begin, const char *end)
bool ParseRequest(Buffer *buf)
Http Request body.
Definition HttpRequest.h:18