Not sure that this actually should be here, but we should put some more thought into it.
We could provide basically an equivalent of the setcookie() function, setting extra parameters. This is what I expected to see.
However, perhaps we should leave it to implementations to provide (on top of withHeaderLine) in the way they see fit.