WordPress at a glance
function is not described

WP_Http::normalize_cookies() public WP 4.6.0

Normalizes cookies for using in Requests.

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

No Hooks.

Return

Requests_Cookie_Jar. Cookie holder object.

Usage

$result = WP_Http::normalize_cookies( $cookies );
$cookies(array) (required)
Array of cookies to send with the request.

Changelog

Since 4.6.0 Introduced.

Code of WP_Http::normalize_cookies() WP 5.7

<?php
public static function normalize_cookies( $cookies ) {
	$cookie_jar = new Requests_Cookie_Jar();

	foreach ( $cookies as $name => $value ) {
		if ( $value instanceof WP_Http_Cookie ) {
			$cookie_jar[ $value->name ] = new Requests_Cookie( $value->name, $value->value, $value->get_attributes(), array( 'host-only' => $value->host_only ) );
		} elseif ( is_scalar( $value ) ) {
			$cookie_jar[ $name ] = new Requests_Cookie( $name, $value );
		}
	}

	return $cookie_jar;
}