Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Http\Response::initHeaderSwoole\Http\Response::sendfile>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026

Swoole\Http\Response::rawcookie

(PECL swoole >= 1.9.0)

Swoole\Http\Response::rawcookie — Set the raw cookies to the HTTP response.

Description

public function Swoole\Http\Response::rawcookie(
    string $name,
    string $value = ?,
    string $expires = ?,
    string $path = ?,
    string $domain = ?,
    string $secure = ?,
    string $httponly = ?
): ReturnType

Parameters

name

value

expires

path

domain

secure

httponly

Return Values


<Swoole\Http\Response::initHeaderSwoole\Http\Response::sendfile>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026