Commit 5a56328e by aminking2005

Update runtime-responses.md

parent 196748a7
...@@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers; ...@@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers;
$headers->add('Pragma', 'no-cache'); $headers->add('Pragma', 'no-cache');
// set a Pragma header. Any existing Pragma headers will be discarded. // set a Pragma header. Any existing Pragma headers will be discarded.
$headers->add('Pragma', 'no-cache'); $headers->set('Pragma', 'no-cache');
// remove Pragma header(s) and return the removed Pragma header values in array // remove Pragma header(s) and return the removed Pragma header values in array
$values = $headers->remove('Pragma'); $values = $headers->remove('Pragma');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment