Sets headers on the request.
Parameters
$headers
arrayrequired- Map of header name to value.
$override
booloptional- If true, replace the request’s headers. Otherwise, merge with existing.
Default:
true
Source
$key = $this->canonicalize_header_name( $key );
unset( $this->headers[ $key ] );
}
/**
* Sets headers on the request.
*
* @since 4.4.0
*
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.