Class Response
- ICanBoogie\HTTP\Response
- ┗ ICanBoogie\Operation\Response implements ArrayAccess
Methods summary
public
__construct( $body = null, $status = 200, array $headers = [] )
Initializes the ICanBoogie\Operation\Response::$errors property.
protected
finalize( ICanBoogie\HTTP\Headers & $headers, & $body )
If $body is null the function does nothing.
protected
finalize_as_json( array $rc, ICanBoogie\HTTP\Headers & $headers, mixed & $body )
Finalizes the response as a JSON string.
protected
finalize_value( mixed $value )
: mixed
Tries to transforms a value into a simple type such as a scalar or an array.
protected
finalize_rc( mixed $rc )
: mixed
Finalizes a value of the ICanBoogie\Operation\Response::$rc property using ICanBoogie\Operation\Response::finalize_value().