protected function respond($response, $contents, $build)
    {
        // Deliver built asset.
        $body = $response->getBody();
        $body->write($contents);
        $body->rewind();

        return $response->withHeader('Content-Type', $this->mapType($build));
    }