| 1 |
<refentry id="refreqhdr"> |
| 2 |
|
| 3 |
<refmeta> |
| 4 |
<refentrytitle>ne_add_request_header</refentrytitle> |
| 5 |
<manvolnum>3</manvolnum> |
| 6 |
</refmeta> |
| 7 |
|
| 8 |
<refnamediv> |
| 9 |
<refname id="ne_add_request_header">ne_add_request_header</refname> |
| 10 |
<refname id="ne_print_request_header">ne_print_request_header</refname> |
| 11 |
<refpurpose>add headers to a request</refpurpose> |
| 12 |
</refnamediv> |
| 13 |
|
| 14 |
<refsynopsisdiv> |
| 15 |
|
| 16 |
<funcsynopsis> |
| 17 |
|
| 18 |
<funcsynopsisinfo>#include <ne_request.h></funcsynopsisinfo> |
| 19 |
|
| 20 |
<funcprototype> |
| 21 |
<funcdef>void <function>ne_add_request_header</function></funcdef> |
| 22 |
<paramdef>ne_request *<parameter>request</parameter></paramdef> |
| 23 |
<paramdef>const char *<parameter>name</parameter></paramdef> |
| 24 |
<paramdef>const char *<parameter>value</parameter></paramdef> |
| 25 |
</funcprototype> |
| 26 |
|
| 27 |
<funcprototype> |
| 28 |
<funcdef>void <function>ne_print_request_header</function></funcdef> |
| 29 |
<paramdef>ne_request *<parameter>request</parameter></paramdef> |
| 30 |
<paramdef>const char *<parameter>name</parameter></paramdef> |
| 31 |
<paramdef>const char *<parameter>format</parameter></paramdef> |
| 32 |
<paramdef>...</paramdef> |
| 33 |
</funcprototype> |
| 34 |
|
| 35 |
</funcsynopsis> |
| 36 |
|
| 37 |
</refsynopsisdiv> |
| 38 |
|
| 39 |
<refsect1> |
| 40 |
<title>Description</title> |
| 41 |
|
| 42 |
<para>The functions <function>ne_add_request_header</function> |
| 43 |
and <function>ne_print_request_header</function> can be used to add |
| 44 |
headers to a request, before it is sent.</para> |
| 45 |
|
| 46 |
<para><function>ne_add_request_header</function> simply adds a |
| 47 |
header of given <parameter>name</parameter>, with given |
| 48 |
<parameter>value</parameter>.</para> |
| 49 |
|
| 50 |
<para><function>ne_print_request_header</function> adds a |
| 51 |
header of given <parameter>name</parameter>, taking the value from the |
| 52 |
<function>printf</function>-like <parameter>format</parameter> string |
| 53 |
parameter and subsequent variable-length argument list.</para> |
| 54 |
|
| 55 |
</refsect1> |
| 56 |
|
| 57 |
<refsect1> |
| 58 |
<title>See also</title> |
| 59 |
|
| 60 |
<para><xref linkend="ne_request_create"/></para> |
| 61 |
</refsect1> |
| 62 |
|
| 63 |
</refentry> |