Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Ixudra
Curl
Builder
withHeader
Ixudra\Curl\Builder::withHeader PHP Method
Builder Class Documentation
Mostrar archivo
Open project: ixudra/curl
withHeader()
public
method
Add a HTTP header to the request
public
withHeader
(
string
$header
) :
Builder
$header
string
The HTTP header that is to be added to the request
return
Builder
public function withHeader($header) { $this->curlOptions['HTTPHEADER'][] = $header; return $this; }
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