\x\Request::header()
用于获取到HTTP服务-客户端的请求头信息。
依赖类:\x\Request
方法名:header()
参数:无
返回值:array
array(7) { ["host"] => string(20) "127.0.0.1:9502" ["connection"] => string(10) "keep-alive" ["upgrade-insecure-requests"] => string(1) "1" ["user-agent"] => string(110) "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36" ["accept"] => string(135) "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" ["accept-encoding"] => string(13) "gzip, deflate" ["accept-language"] => string(23) "zh-CN,zh;q=0.9,en;q=0.8" }