WordPress at a glance
function is not described

WP_REST_Server::send_headers() public WP 4.4.0

Sends multiple HTTP headers.

It's a method of the class: WP_REST_Server{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_REST_Server = new WP_REST_Server();
$WP_REST_Server->send_headers( $headers );
$headers(array) (required)
Map of header name to header value.

Changelog

Since 4.4.0 Introduced.

Code of WP_REST_Server::send_headers() WP 5.5.1

<?php
public function send_headers( $headers ) {
	foreach ( $headers as $key => $value ) {
		$this->send_header( $key, $value );
	}
}