get__header_8c.tex
1.65 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
\hypertarget{get__header_8c}{
\section{src/http/request/parser/get\_\-header.c File Reference}
\label{get__header_8c}\index{src/http/request/parser/get\_\-header.c@{src/http/request/parser/get\_\-header.c}}
}
{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par
Include dependency graph for get\_\-header.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \hyperlink{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c}{httpRequestParserGetHeader} (\hyperlink{structHttpRequest}{HttpRequest} request, char $\ast$line)
\end{DoxyCompactItemize}
\subsection{Function Documentation}
\hypertarget{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c}{
\index{get\_\-header.c@{get\_\-header.c}!httpRequestParserGetHeader@{httpRequestParserGetHeader}}
\index{httpRequestParserGetHeader@{httpRequestParserGetHeader}!get_header.c@{get\_\-header.c}}
\subsubsection[{httpRequestParserGetHeader}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserGetHeader (
\begin{DoxyParamCaption}
\item[{{\bf HttpRequest}}]{request, }
\item[{char $\ast$}]{line}
\end{DoxyParamCaption}
)}}
\label{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c}
Definition at line 7 of file get\_\-header.c.
\begin{DoxyCode}
{
char * name = line;
char * value = strchr(line, ':');
*value = 0;
for (; *value == ' ' && *value != 0; value++);
(request->header)[request->nheader++] = new(HttpHeader, name, value);
}
\end{DoxyCode}
Here is the caller graph for this function: