Клас Swoole\Http\Response
(PECL swoole >= 1.9.0)
Вступ
Огляд класів
class Swoole\Http\Response
{
/* Методы */
public cookie( string $name, string $value = ?, string $expires = ?, string $path = ?, string $domain = ?, string $secure = ?, string $httponly = ?): string
public __destruct(): void
public end(string $content = ?): void
public gzip(string $compress_level = ?): ReturnType
public header(string $key, string $value, string $ucwords = ?): void
public initHeader(): ReturnType
public rawcookie( string $name, string $value = ?, string $expires = ?, string $path = ?, string $domain = ?, string $secure = ?, string $httponly = ?): ReturnType
public sendfile(string $filename, int $offset = ?): ReturnType
public status(string $http_code): ReturnType
public write(string $content): void
}
Зміст
- Swoole\Http\Response::cookie— Встановлює cookie HTTP-відповіді
- Swoole\Http\Response::__destruct— Знищує HTTP-відповідь
- Swoole\Http\Response::end— Надсилає дані HTTP-запиту та завершує відповідь
- Swoole\Http\Response::gzip— Включає gzip-стиснення відповіді.
- Swoole\Http\Response::header— Встановлює заголовки HTTP-відповіді
- Swoole\Http\Response::initHeader— Ініціювати заголовок HTTP-відповіді
- Swoole\Http\Response::rawcookie— Встановлює необроблені cookie у HTTP-відповідь
- Swoole\Http\Response::sendfile— Надсилає файл через HTTP-відповідь
- Swoole\Http\Response::status— Встановлює код стану HTTP-відповіді
- Swoole\Http\Response::write— Додає вміст тіла HTTP у відповідь HTTP