swoole_http_response->end
发送Http响应体,并结束请求处理。
swoole_http_response
->
end(
string
$html
);
end
操作后将向客户端浏览器发送
HTML
内容
end
只能调用一次,如果需要分多次向客户端发送数据,请使用
write
方法
客户端开启了
KeepAlive
,连接将会保持,服务器会等待下一次请求
客户端未开启
KeepAlive
,服务器将会切断连接