HttpOptions
in package
A helper providing autocompletion for available options.
Tags
Table of Contents
Properties
- $options : mixed
Methods
- bindTo() : $this
- buffer() : $this
- capturePeerCertChain() : $this
- resolve() : $this
- setAuthBasic() : $this
- setAuthBearer() : $this
- setBaseUri() : $this
- setBody() : $this
- setCaFile() : $this
- setCaPath() : $this
- setCiphers() : $this
- setExtra() : $this
- setHeaders() : $this
- setHttpVersion() : $this
- setJson() : $this
- setLocalCert() : $this
- setLocalPk() : $this
- setMaxDuration() : $this
- setMaxRedirects() : $this
- setNoProxy() : $this
- setOnProgress() : $this
- setPassphrase() : $this
- setPeerFingerprint() : $this
- setProxy() : $this
- setQuery() : $this
- setTimeout() : $this
- setUserData() : $this
- toArray() : array<string|int, mixed>
- verifyHost() : $this
- verifyPeer() : $this
Properties
$options
private
mixed
$options
= []
Methods
bindTo()
public
bindTo(string $bindto) : $this
Parameters
- $bindto : string
Return values
$thisbuffer()
public
buffer(bool $buffer) : $this
Parameters
- $buffer : bool
Return values
$thiscapturePeerCertChain()
public
capturePeerCertChain(bool $capture) : $this
Parameters
- $capture : bool
Return values
$thisresolve()
public
resolve(array<string|int, mixed> $hostIps) : $this
Parameters
- $hostIps : array<string|int, mixed>
Return values
$thissetAuthBasic()
public
setAuthBasic(string $user[, string $password = '' ]) : $this
Parameters
- $user : string
- $password : string = ''
Return values
$thissetAuthBearer()
public
setAuthBearer(string $token) : $this
Parameters
- $token : string
Return values
$thissetBaseUri()
public
setBaseUri(string $uri) : $this
Parameters
- $uri : string
Return values
$thissetBody()
public
setBody(array<string|int, mixed>|string|resource|Traversable|Closure $body) : $this
Parameters
- $body : array<string|int, mixed>|string|resource|Traversable|Closure
Return values
$thissetCaFile()
public
setCaFile(string $cafile) : $this
Parameters
- $cafile : string
Return values
$thissetCaPath()
public
setCaPath(string $capath) : $this
Parameters
- $capath : string
Return values
$thissetCiphers()
public
setCiphers(string $ciphers) : $this
Parameters
- $ciphers : string
Return values
$thissetExtra()
public
setExtra(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$thissetHeaders()
public
setHeaders(iterable<string|int, mixed> $headers) : $this
Parameters
- $headers : iterable<string|int, mixed>
Return values
$thissetHttpVersion()
public
setHttpVersion(string $version) : $this
Parameters
- $version : string
Return values
$thissetJson()
public
setJson(mixed $json) : $this
Parameters
- $json : mixed
Return values
$thissetLocalCert()
public
setLocalCert(string $cert) : $this
Parameters
- $cert : string
Return values
$thissetLocalPk()
public
setLocalPk(string $pk) : $this
Parameters
- $pk : string
Return values
$thissetMaxDuration()
public
setMaxDuration(float $maxDuration) : $this
Parameters
- $maxDuration : float
Return values
$thissetMaxRedirects()
public
setMaxRedirects(int $max) : $this
Parameters
- $max : int
Return values
$thissetNoProxy()
public
setNoProxy(string $noProxy) : $this
Parameters
- $noProxy : string
Return values
$thissetOnProgress()
public
setOnProgress(callable $callback) : $this
Parameters
- $callback : callable
Return values
$thissetPassphrase()
public
setPassphrase(string $passphrase) : $this
Parameters
- $passphrase : string
Return values
$thissetPeerFingerprint()
public
setPeerFingerprint(string|array<string|int, mixed> $fingerprint) : $this
Parameters
- $fingerprint : string|array<string|int, mixed>
Return values
$thissetProxy()
public
setProxy(string $proxy) : $this
Parameters
- $proxy : string
Return values
$thissetQuery()
public
setQuery(array<string|int, mixed> $query) : $this
Parameters
- $query : array<string|int, mixed>
Return values
$thissetTimeout()
public
setTimeout(float $timeout) : $this
Parameters
- $timeout : float
Return values
$thissetUserData()
public
setUserData(mixed $data) : $this
Parameters
- $data : mixed
Return values
$thistoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>verifyHost()
public
verifyHost(bool $verify) : $this
Parameters
- $verify : bool
Return values
$thisverifyPeer()
public
verifyPeer(bool $verify) : $this
Parameters
- $verify : bool