httpRequest('GET', $url, $data); } /** * POST请求 * @param string $url * @param array $data * @return mixed * @throws \Exception */ public function post(string $url, array $data = []) { return $this->httpRequest('POST', $url, $data); } /** * PUT请求 * @param string $url * @param array $data * @return mixed * @throws \Exception */ public function put(string $url, array $data = []) { return $this->httpRequest('PUT', $url, $data); } /** * DELETE请求 * @param string $url * @param array $data * @return mixed * @throws \Exception */ public function delete(string $url, array $data = []) { return $this->httpRequest('DELETE', $url, $data); } }