__construct() __construct(string $host = '', string $uri = '/', integer $port = 80, boolean $useCurl = true, integer $timeout = 10) Request constructor. Parameters string $host string $uri integer $port boolean $useCurl integer $timeout
setHeader() setHeader( $header, $content) : $this 设置header头. Parameters $header $content Returns $this
setUseBasicAuth() setUseBasicAuth( $set, $username = null, $password = null) 设置认证信息. Parameters $set $username $password