You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
\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}
|