get__header_8c.tex 1.65 KB
\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: