HttpRequestPool
class HttpRequestPool implements Countable, Iterator (View source)
Methods
(PECL pecl_http >= 0.10.0)
HttpRequestPool constructor
(PECL pecl_http >= 0.10.0)
HttpRequestPool destructor
(PECL pecl_http >= 0.10.0)
Send all requests
(PECL pecl_http >= 0.10.0)
Reset request pool
(PECL pecl_http >= 0.15.0)
Perform socket actions
(PECL pecl_http >= 0.10.0)
Perform socket select
Checks if current position is valid
Return the current element
Return the key of the current element
Move forward to next element
Rewind the Iterator to the first element
Count elements of an object
(PECL pecl_http >= 0.16.0)
Get attached requests
(PECL pecl_http >= 0.16.0)
Get finished requests
No description
No description
Details
__construct(HttpRequest|null $request = null)
(PECL pecl_http >= 0.10.0)
HttpRequestPool constructor
void
__destruct()
(PECL pecl_http >= 0.10.0)
HttpRequestPool destructor
bool
attach(HttpRequest $request)
(PECL pecl_http >= 0.10.0)
Attach HttpRequest
bool
detach(HttpRequest $request)
(PECL pecl_http >= 0.10.0)
Detach HttpRequest
bool
send()
(PECL pecl_http >= 0.10.0)
Send all requests
void
reset()
(PECL pecl_http >= 0.10.0)
Reset request pool
protected bool
socketPerform()
(PECL pecl_http >= 0.15.0)
Perform socket actions
protected bool
socketSelect()
(PECL pecl_http >= 0.10.0)
Perform socket select
bool
valid()
Checks if current position is valid
mixed
current()
Return the current element
mixed
key()
Return the key of the current element
void
next()
Move forward to next element
void
rewind()
Rewind the Iterator to the first element
int
count()
Count elements of an object
array
getAttachedRequests()
(PECL pecl_http >= 0.16.0)
Get attached requests
array
getFinishedRequests()
(PECL pecl_http >= 0.16.0)
Get finished requests
enablePipelining($enable)
No description
enableEvents($enable)
No description