...
Add Response Header Field
...
Prototype
Anchor
...
rowspan | 5 |
---|
...
...
Arguments
...
p_instance
Pointer to the instance structure (read only).
...
p_conn
Pointer to the connection structure (read only).
...
Return ValueS
...
DEF_YES
Anchor
If all header fields are added without error.
Anchor
DEF_NO
otherwise.
...
Required Configuration
Anchor
Notes / Warnings
...
...
Example Template
Anchor
...
...
Listing 4-21 Add Header field hook function example code
...
L4-21(1) Ensure that we don’t add header field to a response with an error
...
L4-21(2) Make sure to add header field only on HTML document.
...
L4-21(3) Acquire and add a first header field block of type ‘Cookie’ and with a string value type to the connection
...
L4-21(4) Set the value string value (cookie content) and the string length.
...
L4-21(5) Acquire and add a second header field block of type ‘Server’ and with a string value type to the connection
...
L4-21(6) Set the value string value (server name) and the string length.