httpRequest_8c.tex
7.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
\hypertarget{httpRequest_8c}{
\section{reader/httpReader/httpRequest.c File Reference}
\label{httpRequest_8c}\index{reader/httpReader/httpRequest.c@{reader/httpReader/httpRequest.c}}
}
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$ctype.h$>$}\par
{\tt \#include \char`\"{}../../include/appConfig.h\char`\"{}}\par
{\tt \#include \char`\"{}../../include/httpRequest.h\char`\"{}}\par
{\tt \#include \char`\"{}../../include/client.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item
\#define \hyperlink{httpRequest_8c_5ff6e798033f03e74730e99f01936f84}{SPACE}~0x20
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item
int \hyperlink{httpRequest_8c_c96f6dae9ced89eb2ae8ac556918e367}{httpHeaderGetLine} (\hyperlink{structtHttpHeader}{tHttpHeader} $\ast$header, char $\ast$$\ast$buffer, unsigned int $\ast$readPos)
\item
void \hyperlink{httpRequest_8c_e18ae9e899c3c951308bb2ec4bd810f5}{httpHeaderParseRequestLine} (\hyperlink{structtHttpHeader}{tHttpHeader} $\ast$header, const char $\ast$line, unsigned int len)
\item
int \hyperlink{httpRequest_8c_d5d9232083e5890588d5e1840341a48b}{httpHeaderIsComplete} (\hyperlink{structtHttpHeader}{tHttpHeader} $\ast$header)
\item
unsigned char \hyperlink{httpRequest_8c_29982601e2121cd75800202f5716c7f5}{httpHeaderIsStarted} (\hyperlink{structtHttpHeader}{tHttpHeader} $\ast$header)
\item
int \hyperlink{httpRequest_8c_fd4f839160f6d97ad28e05ee1ce81188}{httpHeaderGet} (char $\ast$$\ast$buffer, unsigned int $\ast$readPos, \hyperlink{structtHttpHeader}{tHttpHeader} $\ast$request)
\item
int \hyperlink{httpRequest_8c_9a6b00ad980ca9a2c5023ec1a802106b}{getHttpRequest} (char $\ast$$\ast$buffer, unsigned int $\ast$readPos, \hyperlink{structtHttpRequest}{tHttpRequest} $\ast$request)
\item
void \hyperlink{httpRequest_8c_86d86da69aefe2067f750c80e626de7c}{freeHttpHeader} (\hyperlink{structtHttpHeader}{tHttpHeader} $\ast$header)
\item
void \hyperlink{httpRequest_8c_d1d9e65b1761d1d5f809314b4b05e772}{freeHttpRequest} (\hyperlink{structtHttpRequest}{tHttpRequest} $\ast$request)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item
char \hyperlink{httpRequest_8c_e7110ef069c94769a78296dc38ab86ca}{httpRequest} \mbox{[}8\mbox{]}\mbox{[}8\mbox{]}
\end{CompactItemize}
\subsection{Define Documentation}
\hypertarget{httpRequest_8c_5ff6e798033f03e74730e99f01936f84}{
\index{httpRequest.c@{httpRequest.c}!SPACE@{SPACE}}
\index{SPACE@{SPACE}!httpRequest.c@{httpRequest.c}}
\subsubsection[{SPACE}]{\setlength{\rightskip}{0pt plus 5cm}\#define SPACE~0x20}}
\label{httpRequest_8c_5ff6e798033f03e74730e99f01936f84}
Definition at line 10 of file httpRequest.c.
\subsection{Function Documentation}
\hypertarget{httpRequest_8c_86d86da69aefe2067f750c80e626de7c}{
\index{httpRequest.c@{httpRequest.c}!freeHttpHeader@{freeHttpHeader}}
\index{freeHttpHeader@{freeHttpHeader}!httpRequest.c@{httpRequest.c}}
\subsubsection[{freeHttpHeader}]{\setlength{\rightskip}{0pt plus 5cm}void freeHttpHeader ({\bf tHttpHeader} $\ast$ {\em header})}}
\label{httpRequest_8c_86d86da69aefe2067f750c80e626de7c}
Definition at line 187 of file httpRequest.c.\hypertarget{httpRequest_8c_d1d9e65b1761d1d5f809314b4b05e772}{
\index{httpRequest.c@{httpRequest.c}!freeHttpRequest@{freeHttpRequest}}
\index{freeHttpRequest@{freeHttpRequest}!httpRequest.c@{httpRequest.c}}
\subsubsection[{freeHttpRequest}]{\setlength{\rightskip}{0pt plus 5cm}void freeHttpRequest ({\bf tHttpRequest} $\ast$ {\em request})}}
\label{httpRequest_8c_d1d9e65b1761d1d5f809314b4b05e772}
Definition at line 217 of file httpRequest.c.\hypertarget{httpRequest_8c_9a6b00ad980ca9a2c5023ec1a802106b}{
\index{httpRequest.c@{httpRequest.c}!getHttpRequest@{getHttpRequest}}
\index{getHttpRequest@{getHttpRequest}!httpRequest.c@{httpRequest.c}}
\subsubsection[{getHttpRequest}]{\setlength{\rightskip}{0pt plus 5cm}int getHttpRequest (char $\ast$$\ast$ {\em buffer}, \/ unsigned int $\ast$ {\em readPos}, \/ {\bf tHttpRequest} $\ast$ {\em request})}}
\label{httpRequest_8c_9a6b00ad980ca9a2c5023ec1a802106b}
Definition at line 162 of file httpRequest.c.\hypertarget{httpRequest_8c_fd4f839160f6d97ad28e05ee1ce81188}{
\index{httpRequest.c@{httpRequest.c}!httpHeaderGet@{httpHeaderGet}}
\index{httpHeaderGet@{httpHeaderGet}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}int httpHeaderGet (char $\ast$$\ast$ {\em buffer}, \/ unsigned int $\ast$ {\em readPos}, \/ {\bf tHttpHeader} $\ast$ {\em request})}}
\label{httpRequest_8c_fd4f839160f6d97ad28e05ee1ce81188}
Definition at line 85 of file httpRequest.c.\hypertarget{httpRequest_8c_c96f6dae9ced89eb2ae8ac556918e367}{
\index{httpRequest.c@{httpRequest.c}!httpHeaderGetLine@{httpHeaderGetLine}}
\index{httpHeaderGetLine@{httpHeaderGetLine}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpHeaderGetLine}]{\setlength{\rightskip}{0pt plus 5cm}int httpHeaderGetLine ({\bf tHttpHeader} $\ast$ {\em header}, \/ char $\ast$$\ast$ {\em buffer}, \/ unsigned int $\ast$ {\em readPos})}}
\label{httpRequest_8c_c96f6dae9ced89eb2ae8ac556918e367}
Definition at line 41 of file httpRequest.c.\hypertarget{httpRequest_8c_d5d9232083e5890588d5e1840341a48b}{
\index{httpRequest.c@{httpRequest.c}!httpHeaderIsComplete@{httpHeaderIsComplete}}
\index{httpHeaderIsComplete@{httpHeaderIsComplete}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpHeaderIsComplete}]{\setlength{\rightskip}{0pt plus 5cm}int httpHeaderIsComplete ({\bf tHttpHeader} $\ast$ {\em header})}}
\label{httpRequest_8c_d5d9232083e5890588d5e1840341a48b}
Definition at line 52 of file httpRequest.c.\hypertarget{httpRequest_8c_29982601e2121cd75800202f5716c7f5}{
\index{httpRequest.c@{httpRequest.c}!httpHeaderIsStarted@{httpHeaderIsStarted}}
\index{httpHeaderIsStarted@{httpHeaderIsStarted}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpHeaderIsStarted}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char httpHeaderIsStarted ({\bf tHttpHeader} $\ast$ {\em header})}}
\label{httpRequest_8c_29982601e2121cd75800202f5716c7f5}
Definition at line 62 of file httpRequest.c.\hypertarget{httpRequest_8c_e18ae9e899c3c951308bb2ec4bd810f5}{
\index{httpRequest.c@{httpRequest.c}!httpHeaderParseRequestLine@{httpHeaderParseRequestLine}}
\index{httpHeaderParseRequestLine@{httpHeaderParseRequestLine}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpHeaderParseRequestLine}]{\setlength{\rightskip}{0pt plus 5cm}void httpHeaderParseRequestLine ({\bf tHttpHeader} $\ast$ {\em header}, \/ const char $\ast$ {\em line}, \/ unsigned int {\em len})}}
\label{httpRequest_8c_e18ae9e899c3c951308bb2ec4bd810f5}
Definition at line 47 of file httpRequest.c.
\subsection{Variable Documentation}
\hypertarget{httpRequest_8c_e7110ef069c94769a78296dc38ab86ca}{
\index{httpRequest.c@{httpRequest.c}!httpRequest@{httpRequest}}
\index{httpRequest@{httpRequest}!httpRequest.c@{httpRequest.c}}
\subsubsection[{httpRequest}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf httpRequest}\mbox{[}8\mbox{]}\mbox{[}8\mbox{]}}}
\label{httpRequest_8c_e7110ef069c94769a78296dc38ab86ca}
\textbf{Initial value:}
\begin{Code}\begin{verbatim} {
"OPTIONS",
"GET",
"HEAD",
"POST",
"PUT",
"DELETE",
"TRACE",
"CONNECT"
}
\end{verbatim}
\end{Code}
Definition at line 13 of file httpRequest.c.