GC_HTTP_Requests_Response::set_status()

最后更新于:2021-12-01 11:11:25

GC_( int$code)

Sets the 3-digit HTTP status code.

参数

$code

(int) (Required) HTTP status.

源文件

文件: gc-includes/class-gc-http-requests-response.php

	public function set_status( $code ) {
		$this->response->status_code = absint( $code );
	}