This allows API Handlers to modify the response instead of just accessing the contents. I don't know why we didn't do that from the start. This is a breaking change!
function onResponse($request, $response) {
return $response->withBody( Psr7\stream_for('[]') );
}
This allows API Handlers to modify the response instead of just accessing the contents. I don't know why we didn't do that from the start. This is a breaking change!