WordPress at a glance
function is not described

WP_REST_Server::remove_header() public WP 4.8.0

Removes an HTTP header from the current response.

{} 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->remove_header( $key );
$key(string) (required)
Header key.

Changelog

Since 4.8.0 Introduced.

Code of WP_REST_Server::remove_header() WP 5.6

<?php
public function remove_header( $key ) {
	header_remove( $key );
}