GC_HTTP_Requests_Response::set_headers()
最后更新于:2021-12-01 11:11:29
GC_( array$headers)Sets all header values.
参数
- $headers
-
(array) (Required) Map of header name to header value.
源文件
文件: gc-includes/class-gc-http-requests-response.php
public function set_headers( $headers ) {
$this->response->headers = new Requests_Response_Headers( $headers );
}