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::gzipSwoole\Http\Response::initHeader>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026

Swoole\Http\Response::header

(PECL swoole >= 1.9.0)

Swoole\Http\Response::header — Set the HTTP response headers.

Description

public function Swoole\Http\Response::header(string $key, string $value, string $ucwords = ?): void

Parameters

key

value

ucwords

Return Values


<Swoole\Http\Response::gzipSwoole\Http\Response::initHeader>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026