public function set($key, $value) {
        $key = $this->formatKey($key);
        array_set($this->headers, $key, [$value]);
    }
public function set($key, $value) {
        $key = $this->formatKey($key);
        array_set($this->headers, $key, [$value]);
    }
public function set ( $ key , $ value ) { $ key = $ this -> formatKey ( $ key ) ; array_set ( $ this -> headers , $ key , [ $ value ] ) ; }
Replace all previous headers with this one.

@param $key
@param $value
Replace all previous headers with this one .