Interface ResponseContract
Contract interfaces enforce expected behavior in a non-colliding way. They are tasked with enforcing methods, and extending interfaces provided by standards and other packages for compatibility.
All valid oroboros classes MUST extend at
least one Contract Interface to be considered valid.
- oroboros\core\interfaces\contract\libraries\response\ResponseContract implements oroboros\core\interfaces\contract\libraries\stream\MessageContract, Psr\Http\Message\ResponseInterface
Direct known implementers
oroboros\core\abstracts\libraries\response\AbstractResponse
,
oroboros\core\interfaces\contract\libraries\response\ServerResponseContract
Indirect known implementers
Package: oroboros\core\response
Category: contract-interfaces
License: The MIT License (MIT)
Author: Brian Dayhoff mopsyd@me.com
Version: 0.2.4
Since: 0.2.4-alpha
Link: bitbucket.org/oroborosframework/oroboros-core/wiki/development/api/contract_interface.md
Located at core/interfaces/contract/libraries/response/ResponseContract.php
Methods summary
public
|
#
__construct( scalar|resource|Psr\Http\Message\StreamInterface $body, array $headers = null, string $protocol = null, integer $code = null, string $reason = null )
|
public
integer
|
|
public
static
|
#
withStatus( integer $code, string $reasonPhrase = '' )
Return an instance with the specified status code and, optionally, reason phrase. |
public
string
|
Methods inherited from oroboros\core\interfaces\contract\libraries\stream\MessageContract
getBody()
,
getHeader()
,
getHeaderLine()
,
getHeaders()
,
getProtocolVersion()
,
hasHeader()
,
withAddedHeader()
,
withBody()
,
withHeader()
,
withProtocolVersion()
,
withoutHeader()
Methods inherited from oroboros\core\interfaces\contract\libraries\stream\StreamContract
__destruct()
,
__toString()
,
close()
,
detach()
,
eof()
,
getContents()
,
getMetadata()
,
getSize()
,
isReadable()
,
isSeekable()
,
isWritable()
,
read()
,
rewind()
,
seek()
,
tell()
,
write()