Implement headers option for function 'poll'
Implement the function 'poll' options (Listing 13.34)