Requests_Cookie::format_for_header

Advertisement

Summery Summery

Format a cookie for a Cookie header

Syntax Syntax

Requests_Cookie::format_for_header()

Description Description

This is used when sending cookies to a server.

Return Return

(string) Cookie formatted for Cookie header

Source Source

File: wp-includes/Requests/Cookie.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.