WP_HTTP_Requests_Response::set_headers( array $headers )

In this article

Sets all header values.

Parameters

$headersarrayrequired
Map of header name to header value.

Source

public function set_headers( $headers ) {
	$this->response->headers = new WpOrg\Requests\Response\Headers( $headers );
}

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.