Set custom header to apache response within a module
<p>I'm creating an apache module that encrypt data with AES.
My final goal is to use a different AES key for every request, generating a 16 byte new key used to AES encrypt the file and send the key (encrypted with RSA) as a custom header</p>

<p>The problem is that i can't find any documentation to programmatically set a custom header.</p>

<p>I'm expecting something like <code>ap_set_handler("HeaderName","content")</code></p>

<p>i only found this file that use such a function: 
<a href="http://opensource.apple.com/source/apache/apache-643/apache/src/modules/proxy/proxy_ftp.c" rel="nofollow">http://opensource.apple.com/source/apache/apache-643/apache/src/modules/proxy/proxy_ftp.c</a></p>

<p>The problem is that including it in my source code give me a <code>implicit declaration of function 'ap_set_header'</code> error even though i included the same .h files of that file.</p>

<p>I'm pretty sure it can be done but i really don't know where to search</p>