MvcLite\Response::setHeader
Set's a header value
Signature
public function setHeader(string
$name,
[string
$value = ''] )
Parameters
$name
—
string
$value
—
string
Returns
- Response
- $this for object-chaining.
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 5
- Passed: 5 (100%)
Tests
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- [ PASSED ] — MvcLite\ResponseTest::testSetHeader with data set "plain content headers"
- [ PASSED ] — MvcLite\ResponseTest::testSetHeader with data set "csv content headers"
- [ PASSED ] — MvcLite\ResponseTest::testSetHeader with data set "testing headers"