Requests_Response_Headers::offsetGet()
最后更新于:2021-11-26 04:03:25
Requests_Response_Headers::offsetGet( string$key)Get the given header
参数
- $key
-
(string) (Required)
响应
(string|null) Header value
源文件
文件: gc-includes/Requests/Response/Headers.php
public function offsetGet($key) {
$key = strtolower($key);
if (!isset($this->data[$key])) {
return null;
}
return $this->flatten($this->data[$key]);
}