header__get_8c.tex
1.63 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
\hypertarget{header__get_8c}{
\section{src/http/request/header\_\-get.c File Reference}
\label{header__get_8c}\index{src/http/request/header\_\-get.c@{src/http/request/header\_\-get.c}}
}
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$ctype.h$>$}\par
{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par
Include dependency graph for header\_\-get.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
char $\ast$ \hyperlink{header__get_8c_abe5df7e20fea66f7926cf40df8250f26}{httpRequestHeaderGet} (\hyperlink{structHttpRequest}{HttpRequest} this, const char $\ast$name)
\end{DoxyCompactItemize}
\subsection{Function Documentation}
\hypertarget{header__get_8c_abe5df7e20fea66f7926cf40df8250f26}{
\index{header\_\-get.c@{header\_\-get.c}!httpRequestHeaderGet@{httpRequestHeaderGet}}
\index{httpRequestHeaderGet@{httpRequestHeaderGet}!header_get.c@{header\_\-get.c}}
\subsubsection[{httpRequestHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpRequestHeaderGet (
\begin{DoxyParamCaption}
\item[{{\bf HttpRequest}}]{this, }
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}
\label{header__get_8c_abe5df7e20fea66f7926cf40df8250f26}
Definition at line 31 of file header\_\-get.c.
\begin{DoxyCode}
{
unsigned long hash = sdbm((unsigned char *)name);
struct HttpRequestHeader * header;
header = bsearch(
&hash,
this->header,
this->nheader,
sizeof(struct HttpRequestHeader),
comp);
return (NULL != header)? header->value : NULL;
}
\end{DoxyCode}