Swoole\Http\Request->header

Declaration

<?php
Swoole\Http\Request->header

Parameters

Return

Description

The Swoole\Http\Request->header is an array which contains the information of http request.

All the keys of this array is lowercase.

Example

<?php
echo $request->header['host'];
echo $request->header['accept-language'];