WP_HTTP_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->headers = $headers;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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