private function ok(string $body = 'ok') : Generator { $response = new BasicResponse(Response::OK, ['Content-Type' => 'text/plain']); yield from $response->getBody()->end($body); return $response; }