Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Ixudra
Curl
Builder
withTimeout
Ixudra\Curl\Builder::withTimeout PHP Method
Builder Class Documentation
Show file
Open project: ixudra/curl
withTimeout()
public
method
Set the request timeout
public
withTimeout
(
integer
$timeout
= 30 ) :
Builder
$timeout
integer
The timeout for the request (in seconds. Default: 30 seconds)
return
Builder
public function withTimeout($timeout = 30) { return $this->withCurlOption('TIMEOUT', $timeout); }
Builder
allowRedirect
appendDataToURL
asJson
asJsonRequest
asJsonResponse
containsFile
delete
download
enableDebug
forgeOptions
get
patch
post
put
returnResponse
returnResponseObject
send
setPostParameters
to
withContentType
withCurlOption
withData
withHeader
withHeaders
withOption
withPackageOption
withTimeout