MvcLite\Request::getHeader
method to get the value for a single header
Signature
public function getHeader([string
$header = ''] )
Parameters
$header
—
string
Test Coverage
Information
- Coverage: 1/1 Lines (100%)
- Tests: 7
- Passed: 7 (100%)
Tests
- [ PASSED ] — MvcLite\ControllerTest::testInit
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- [ PASSED ] — MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- [ PASSED ] — MvcLite\RequestTest::testIsAjax
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- [ PASSED ] — MvcLite\RequestTest::testGetContentType with data set "has nothing"