\href{https://npmjs.org/package/forwarded}{\texttt{ }} \href{https://npmjs.org/package/forwarded}{\texttt{ }} \href{https://nodejs.org/en/download/}{\texttt{ }} \href{https://travis-ci.org/jshttp/forwarded}{\texttt{ }} \href{https://coveralls.io/r/jshttp/forwarded?branch=master}{\texttt{ }}

Parse HTTP X-\/\+Forwarded-\/\+For header\hypertarget{md_sfcode_node_modules_forwarded_README_autotoc_md10849}{}\doxysection{Installation}\label{md_sfcode_node_modules_forwarded_README_autotoc_md10849}
This is a \href{https://nodejs.org/en/}{\texttt{ Node.\+js}} module available through the \href{https://www.npmjs.com/}{\texttt{ npm registry}}. Installation is done using the \href{https://docs.npmjs.com/getting-started/installing-npm-packages-locally}{\texttt{ {\ttfamily npm install} command}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install forwarded }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_forwarded_README_autotoc_md10850}{}\doxysection{API}\label{md_sfcode_node_modules_forwarded_README_autotoc_md10850}

\begin{DoxyCode}{0}
\DoxyCodeLine{var forwarded = require('forwarded') }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_forwarded_README_autotoc_md10851}{}\doxysubsection{forwarded(req)}\label{md_sfcode_node_modules_forwarded_README_autotoc_md10851}

\begin{DoxyCode}{0}
\DoxyCodeLine{var addresses = forwarded(req) }

\end{DoxyCode}


Parse the {\ttfamily X-\/\+Forwarded-\/\+For} header from the request. Returns an array of the addresses, including the socket address for the {\ttfamily req}, in reverse order (i.\+e. index {\ttfamily 0} is the socket address and the last index is the furthest address, typically the end-\/user).\hypertarget{md_sfcode_node_modules_forwarded_README_autotoc_md10852}{}\doxysection{Testing}\label{md_sfcode_node_modules_forwarded_README_autotoc_md10852}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_forwarded_README_autotoc_md10853}{}\doxysection{License}\label{md_sfcode_node_modules_forwarded_README_autotoc_md10853}
\mbox{[}MIT\mbox{]}(LICENSE) 