GC_HTTP_Response::set_status()

最后更新于:2021-12-01 11:10:54

GC_( int$code)

Sets the 3-digit HTTP status code.

参数

$code

(int) (Required) HTTP status.

源文件

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

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