WpOrg\Requests

Cookie::format_for_header()publicWP 1.0

Format a cookie for a Cookie header

This is used when sending cookies to a server.

Method of the class: Cookie{}

No Hooks.

Return

String. Cookie formatted for Cookie header

Usage

$Cookie = new Cookie();
$Cookie->format_for_header();

Cookie::format_for_header() code WP 6.6.2

public function format_for_header() {
	return sprintf('%s=%s', $this->name, $this->value);
}