<?php
Swoole\Http\Response->header(string $key, string $value)
The key of HTTP header
The value of HTTP header
Set the HTTP header sending to HTTP client.
This method must be called before the
$response->end
method.
$response->header('Content-Type', 'image/jpeg');