Replaces the current HTTP headers by a new set.
@api
array $headers An array of HTTP headers:
public function replace(array $headers = array()) { $this->headers = array(); $this ->add($headers); }