protected function post($url, array $data = null)
    {
        return $this->request(
            'POST',
            $url,
            ['Content-Type' => 'application/json'],
            $data !== null ? \json_encode($data) : null
        );
    }