HTTPStream
in package
AbstractYes
Legacy HTTP-backed stream helper.
Included for historical compatibility only. This API is out of support and should not be used in new code.
Tags
Table of Contents
Constants
- STATUS_CONTENT : mixed = 3
- STATUS_CONTENTDONE : mixed = 4
- STATUS_DONE : mixed = 1
- STATUS_ERROR : mixed = 0
- STATUS_RETRY : mixed = 2
Properties
- $content : string
- $encoding : string|null
- $headerList : array<string, string>
- $heartbeatContent : string|null
- $heartbeatEOL : string|null
- $heartbeatInterval : float
- $heartbeatTimeout : float
- $mime : string|null
- $sleepDuration : float
- $status : int
Methods
- __toString() : string
- getContent() : string
- getEncoding() : string|null
- getHeaderList() : array<string, string>
- getHeartbeatContent() : string|null
- getHeartbeatEOL() : string|null
- getHeartbeatInterval() : float
- getHeartbeatTimeout() : float
- getMime() : string|null
- getSleepDuration() : float
- getStatus() : int
- setStatusContent() : void
- setStatusContentDone() : void
- setStatusDone() : void
- setStatusError() : void
- setStatusRetry() : void
- parseContent() : void
- parseStatus() : void
Constants
STATUS_CONTENT
public
mixed
STATUS_CONTENT
= 3
STATUS_CONTENTDONE
public
mixed
STATUS_CONTENTDONE
= 4
STATUS_DONE
public
mixed
STATUS_DONE
= 1
STATUS_ERROR
public
mixed
STATUS_ERROR
= 0
STATUS_RETRY
public
mixed
STATUS_RETRY
= 2
Properties
$content
protected
string
$content
= ''
$encoding
protected
string|null
$encoding
= null
$headerList
protected
array<string, string>
$headerList
= []
$heartbeatContent
protected
string|null
$heartbeatContent
= null
$heartbeatEOL
protected
string|null
$heartbeatEOL
= null
$heartbeatInterval
protected
float
$heartbeatInterval
= \Slothsoft\Core\Calendar\Seconds::SECOND
$heartbeatTimeout
protected
float
$heartbeatTimeout
= \Slothsoft\Core\Calendar\Seconds::HOUR
$mime
protected
string|null
$mime
= null
$sleepDuration
protected
float
$sleepDuration
= \Slothsoft\Core\Calendar\Seconds::MILLISECOND
$status
protected
int
$status
= self::STATUS_DONE
Methods
__toString()
public
__toString() : string
Return values
stringgetContent()
public
getContent() : string
Return values
stringgetEncoding()
public
getEncoding() : string|null
Return values
string|nullgetHeaderList()
public
getHeaderList() : array<string, string>
Return values
array<string, string>getHeartbeatContent()
public
getHeartbeatContent() : string|null
Return values
string|nullgetHeartbeatEOL()
public
getHeartbeatEOL() : string|null
Return values
string|nullgetHeartbeatInterval()
public
getHeartbeatInterval() : float
Return values
floatgetHeartbeatTimeout()
public
getHeartbeatTimeout() : float
Return values
floatgetMime()
public
getMime() : string|null
Return values
string|nullgetSleepDuration()
public
getSleepDuration() : float
Return values
floatgetStatus()
public
getStatus() : int
Return values
intsetStatusContent()
public
setStatusContent() : void
setStatusContentDone()
public
setStatusContentDone() : void
setStatusDone()
public
setStatusDone() : void
setStatusError()
public
setStatusError() : void
setStatusRetry()
public
setStatusRetry() : void
parseContent()
protected
abstract parseContent() : void
parseStatus()
protected
abstract parseStatus() : void