web\Response $isInformational

$isInformational public read-only property Whether this response is informational public boolean getIsInformational ( )

web\Response $isForbidden

$isForbidden public read-only property Whether this response indicates the current request is forbidden public boolean getIsForbidden ( )

web\Response $isEmpty

$isEmpty public read-only property Whether this response is empty public boolean getIsEmpty ( )

web\Response $isClientError

$isClientError public read-only property Whether this response indicates a client error public boolean getIsClientError ( )

web\Response $httpStatuses

$httpStatuses public static property List of HTTP status codes and the corresponding texts public static array $httpStatuses = [100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 118 => 'Connection timed out', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-Status', 208 => 'Already Reported', 210 => 'Content Differen

web\Response $headers

$headers public read-only property The header collection public yii\web\HeaderCollection getHeaders ( )

web\Response $formatters

$formatters public property The formatters for converting data into the response content of the specified $format. The array keys are the format names, and the array values are the corresponding configurations for creating the formatter objects. See also: $format defaultFormatters() public array $formatters = []

web\Response $format

$format public property The response format. This determines how to convert $data into $content when the latter is not set. The value of this property must be one of the keys declared in the $formatters array. By default, the following formats are supported: FORMAT_RAW: the data will be treated as the response content without any conversion. No extra HTTP header will be added. FORMAT_HTML: the data will be treated as the response content without any conversion. The "Content-Type" header w

web\Response $downloadHeaders

$downloadHeaders public write-only property The attachment file name public $this setDownloadHeaders ( $attachmentName, $mimeType = null, $inline = false, $contentLength = null )

web\Response $data

$data public property The original response data. When this is not null, it will be converted into $content according to $format when the response is being sent out. See also $content. public mixed $data = null