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
26
class
CHttpParser
{
27
public
:
28
CHAR
sBuffer
[2048];
29
UINT
nHead
;
30
UINT
nTail
;
31
CHAR
sUri
[255];
32
CHAR
sVersion
[15];
33
CHAR
sHeader
[63];
34
CHAR
sMethod
[63];
35
UINT
nMethodNo
;
36
BOOL
bUnknownMethod
;
37
BOOL
bBadRequest
;
38
CHttpParser
();
39
~CHttpParser
();
40
BOOL
Complete
();
41
BOOL
Parse
();
42
private
:
43
BOOL
ReadChar
(
LPSTR
lpsStr);
44
BOOL
PeekChar
(
LPSTR
lpsStr);
45
BOOL
ReadString
(
LPSTR
lpsStr,
UINT
nLength
);
46
BOOL
ReadSpecial
(
LPSTR
lpStr,
UINT
nLength
);
47
VOID
Skip
(
CHAR
sStr);
48
BOOL
Expect
(
CHAR
sStr);
49
BOOL
ExpectCRLF
();
50
BOOL
RequestLine
();
51
BOOL
GenerelHeader
();
52
BOOL
RequestHeader
();
53
BOOL
EntityHeader
();
54
BOOL
MessageBody
();
55
};
56
57
#endif
/* __HTTP_H */
CHttpParser
Definition:
http.h:26
CHttpParser::Parse
BOOL Parse()
Definition:
http.cpp:191
CHttpParser::sMethod
CHAR sMethod[63]
Definition:
http.h:34
CHttpParser::GenerelHeader
BOOL GenerelHeader()
Definition:
http.cpp:253
CHttpParser::MessageBody
BOOL MessageBody()
Definition:
http.cpp:374
CHttpParser::RequestHeader
BOOL RequestHeader()
Definition:
http.cpp:285
CHttpParser::CHttpParser
CHttpParser()
Definition:
http.cpp:37
CHttpParser::sVersion
CHAR sVersion[15]
Definition:
http.h:32
CHttpParser::~CHttpParser
~CHttpParser()
Definition:
http.cpp:44
CHttpParser::Expect
BOOL Expect(CHAR sStr)
Definition:
http.cpp:170
CHttpParser::RequestLine
BOOL RequestLine()
Definition:
http.cpp:213
CHttpParser::PeekChar
BOOL PeekChar(LPSTR lpsStr)
Definition:
http.cpp:98
CHttpParser::ReadString
BOOL ReadString(LPSTR lpsStr, UINT nLength)
Definition:
http.cpp:116
CHttpParser::ReadChar
BOOL ReadChar(LPSTR lpsStr)
Definition:
http.cpp:72
CHttpParser::ExpectCRLF
BOOL ExpectCRLF()
Definition:
http.cpp:184
CHttpParser::nTail
UINT nTail
Definition:
http.h:30
CHttpParser::sBuffer
CHAR sBuffer[2048]
Definition:
http.h:28
CHttpParser::ReadSpecial
BOOL ReadSpecial(LPSTR lpStr, UINT nLength)
Definition:
http.cpp:142
CHttpParser::nHead
UINT nHead
Definition:
http.h:29
CHttpParser::sUri
CHAR sUri[255]
Definition:
http.h:31
CHttpParser::sHeader
CHAR sHeader[63]
Definition:
http.h:33
CHttpParser::EntityHeader
BOOL EntityHeader()
Definition:
http.cpp:350
CHttpParser::bBadRequest
BOOL bBadRequest
Definition:
http.h:37
CHttpParser::nMethodNo
UINT nMethodNo
Definition:
http.h:35
CHttpParser::Skip
VOID Skip(CHAR sStr)
Definition:
http.cpp:161
CHttpParser::Complete
BOOL Complete()
Definition:
http.cpp:49
CHttpParser::bUnknownMethod
BOOL bUnknownMethod
Definition:
http.h:36
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
void
Definition:
nsiface.idl:2307
UINT
unsigned int UINT
Definition:
ndis.h:50
nLength
_In_ DWORD nLength
Definition:
wincon.h:473
LPSTR
char * LPSTR
Definition:
xmlstorage.h:182
CHAR
char CHAR
Definition:
xmlstorage.h:175
modules
rosapps
applications
net
roshttpd
include
http.h
Generated on Sun Oct 13 2024 06:11:56 for ReactOS by
1.9.6