Closed danilopolani closed 7 years ago
@anaskhan96 any news?
@danilopolani Sorry I've been busy the last few days. This looks good at first glance. I'll be reviewing this sometime later and revert back to you.
This looks good. Make the necessary changes in the README too and it should be ready to merge.
Fix feature #9.
There are two ways to define a custom header:
Header()
function (suggested if you have to add a few headers);Headers
variable which is an associative array (map[string]string
).As always the README needs an edit.
Examples
Note: all the examples are generated printing the headers received in a PHP page.
No headers
Code
Output
Headers via Header function
Code
Output
Headers via Headers variable
Code
Output