public function getHttp()
    {
        if (is_null($this->http)) {
            $this->http = new Http();
        }

        if (count($this->http->getMiddlewares()) === 0) {
            $this->registerHttpMiddlewares();
        }

        return $this->http;
    }
public function getHttp()
    {
        if (is_null($this->http)) {
            $this->http = new Http();
        }

        if (count($this->http->getMiddlewares()) === 0) {
            $this->registerHttpMiddlewares();
        }

        return $this->http;
    }
public function getHttp ( ) { if ( is_null ( $ this -> http ) ) { $ this -> http = new Http ( ) ; } if ( count ( $ this -> http -> getMiddlewares ( ) ) === 0 ) { $ this -> registerHttpMiddlewares ( ) ; } return $ this -> http ; }
Return the http instance.

@return \EntWeChat\Core\Http
Return the http instance .