ReactOS 0.4.16-dev-122-g325d74c
http.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS HTTP Daemon
4 * FILE: include/http.h
5 */
6#ifndef __HTTP_H
7#define __HTTP_H
8
9#include <windows.h>
10
11// Generel HTTP related constants
12#define NUMMETHODS 7
13#define NUMGENERELS 7
14#define NUMREQUESTS 17
15#define NUMENTITIES 12
16
17// HTTP method constants
18#define hmOPTIONS 0
19#define hmGET 1
20#define hmHEAD 2
21#define hmPOST 3
22#define hmPUT 4
23#define hmDELETE 5
24#define hmTRACE 6
25
27public:
31 CHAR sUri[255];
40 BOOL Complete();
41 BOOL Parse();
42private:
43 BOOL ReadChar(LPSTR lpsStr);
44 BOOL PeekChar(LPSTR lpsStr);
47 VOID Skip(CHAR sStr);
48 BOOL Expect(CHAR sStr);
55};
56
57#endif /* __HTTP_H */
BOOL Parse()
Definition: http.cpp:191
CHAR sMethod[63]
Definition: http.h:34
BOOL GenerelHeader()
Definition: http.cpp:253
BOOL MessageBody()
Definition: http.cpp:374
BOOL RequestHeader()
Definition: http.cpp:285
CHttpParser()
Definition: http.cpp:37
CHAR sVersion[15]
Definition: http.h:32
~CHttpParser()
Definition: http.cpp:44
BOOL Expect(CHAR sStr)
Definition: http.cpp:170
BOOL RequestLine()
Definition: http.cpp:213
BOOL PeekChar(LPSTR lpsStr)
Definition: http.cpp:98
BOOL ReadString(LPSTR lpsStr, UINT nLength)
Definition: http.cpp:116
BOOL ReadChar(LPSTR lpsStr)
Definition: http.cpp:72
BOOL ExpectCRLF()
Definition: http.cpp:184
UINT nTail
Definition: http.h:30
CHAR sBuffer[2048]
Definition: http.h:28
BOOL ReadSpecial(LPSTR lpStr, UINT nLength)
Definition: http.cpp:142
UINT nHead
Definition: http.h:29
CHAR sUri[255]
Definition: http.h:31
CHAR sHeader[63]
Definition: http.h:33
BOOL EntityHeader()
Definition: http.cpp:350
BOOL bBadRequest
Definition: http.h:37
UINT nMethodNo
Definition: http.h:35
VOID Skip(CHAR sStr)
Definition: http.cpp:161
BOOL Complete()
Definition: http.cpp:49
BOOL bUnknownMethod
Definition: http.h:36
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned int UINT
Definition: ndis.h:50
_In_ DWORD nLength
Definition: wincon.h:473
char * LPSTR
Definition: xmlstorage.h:182
char CHAR
Definition: xmlstorage.h:175