PHP 5.6.38 Released

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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top