filters\HttpCache $enabled

$enabled public property A value indicating whether this filter should be enabled. public boolean $enabled = true

filters\HttpCache $cacheControlHeader

$cacheControlHeader public property The value of the Cache-Control HTTP header. If null, the header will not be sent. See also http://tools.ietf.org/html/rfc2616#section-14.9. public string $cacheControlHeader = 'public, max-age=3600'

filters\Cors prepareHeaders()

prepareHeaders() public method For each CORS headers create the specific response public array prepareHeaders ( $requestHeaders )$requestHeaders array CORS headers we have detected return array CORS headers ready to be sent

filters\Cors prepareAllowHeaders()

prepareAllowHeaders() protected method Handle classic CORS request to avoid duplicate code protected void prepareAllowHeaders ( $type, $requestHeaders, &$responseHeaders )$type string The kind of headers we would handle $requestHeaders array CORS headers request by client $responseHeaders array CORS response headers sent to the client

filters\Cors overrideDefaultSettings()

overrideDefaultSettings() public method Override settings for specific action public void overrideDefaultSettings ( $action )$action yii\base\Action The action settings to override

filters\Cors headerizeToPhp()

headerizeToPhp() protected method Convert any string (including php headers with HTTP prefix) to header format like : X-Pingother -> HTTP_X_PINGOTHER X PINGOTHER -> HTTP_X_PINGOTHER protected string headerizeToPhp ( $string )$string string String to convert return string The result in "php $_SERVER header" format

filters\Cors headerize()

headerize() protected method Convert any string (including php headers with HTTP prefix) to header format like : X-PINGOTHER -> X-Pingother X_PINGOTHER -> X-Pingother protected string headerize ( $string )$string string String to convert return string The result in "header" format

filters\Cors extractHeaders()

extractHeaders() public method Extract CORS headers from the request public array extractHeaders ( )return array CORS headers to handle

filters\Cors beforeAction()

beforeAction() public method This method is invoked right before an action is to be executed (after all possible filters.) You may override this method to do last-minute preparation for the action. public boolean beforeAction ( $action )$action yii\base\Action The action to be executed. return boolean Whether the action should continue to be executed.

filters\Cors addCorsHeaders()

addCorsHeaders() public method Adds the CORS headers to the response public void addCorsHeaders ( $response, $headers )$response yii\web\Response $headers