Swoole
PHP Manual

The Swoole\Http\Response class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Introduction

Class synopsis

Swoole\Http\Response {
/* Methods */
public string cookie ( string $name [, string $value [, string $expires [, string $path [, string $domain [, string $secure [, string $httponly ]]]]]] )
public void __destruct ( void )
public void end ([ string $content ] )
public ReturnType gzip ([ string $compress_level ] )
public void header ( string $key , string $value [, string $ucwords ] )
public ReturnType initHeader ( void )
public ReturnType rawcookie ( string $name [, string $value [, string $expires [, string $path [, string $domain [, string $secure [, string $httponly ]]]]]] )
public ReturnType sendfile ( string $filename [, int $offset ] )
public ReturnType status ( string $http_code )
public void write ( string $content )
}

Table of Contents


Swoole
PHP Manual