public function __construct() { // Set some sane default headers $this->headers = array('Content-Type' => 'application/json', 'X-BitPay-Plugin-Info' => null); $this->port = 443; // Default method is POST $this->method = self::METHOD_POST; }