Requests::head() WordPress Method

The Requests::head() method makes an HTTP HEAD request to a given URL. It returns a Requests_Response object.

Requests::head( $url,  $headers = array(),  $options = array() ) #

Send a HEAD request


Source

File: wp-includes/class-requests.php

	public static function head($url, $headers = array(), $options = array()) {
		return self::request($url, $headers, null, self::HEAD, $options);
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.