request->input('user', 'Hyperf'); $method = $this->request->getMethod(); return [ 'method' => $method, 'message' => "Hello {$user}.", ]; } public function upload(ResponseInterface $response) { return [ 'method' => 'upload', ]; } }