PHP 클래스 Phalcon\Http\Client\Provider\Curl

상속: extends Phalcon\Http\Client\Request
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( )
__construct ( )
__destruct ( )
delete ( $uri, $params = [], $customHeader = [], $fullResponse = false )
get ( $uri, $params = [], $customHeader = [], $fullResponse = false )
head ( $uri, $params = [], $customHeader = [], $fullResponse = false )
headerFunction ( $ch, $headerLine )
isAvailable ( )
patch ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )
post ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )
put ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )
setAuth ( string $user, string $pass, string $auth = 'basic' ) Setup authentication
setConnectTimeout ( $timeout )
setCookies ( array $cookies ) Set cookies for this session
setOption ( $option, $value )
setOptions ( $options )
setProxy ( $host, $port = 8080, $user = null, $pass = null )
setTimeout ( $timeout )

보호된 메소드들

메소드 설명
initPostFields ( mixed $params, boolean $useEncoding = true ) : void Prepare data for a cURL post.
send ( array $customHeader = [], boolean $fullResponse = false ) : Response Sends the request and returns the response.

비공개 메소드들

메소드 설명
initOptions ( )

메소드 상세

__clone() 공개 메소드

public __clone ( )

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

public __destruct ( )

delete() 공개 메소드

public delete ( $uri, $params = [], $customHeader = [], $fullResponse = false )

get() 공개 메소드

public get ( $uri, $params = [], $customHeader = [], $fullResponse = false )

head() 공개 메소드

public head ( $uri, $params = [], $customHeader = [], $fullResponse = false )

headerFunction() 공개 메소드

public headerFunction ( $ch, $headerLine )

initPostFields() 보호된 메소드

Prepare data for a cURL post.
protected initPostFields ( mixed $params, boolean $useEncoding = true ) : void
$params mixed Data to send.
$useEncoding boolean Whether to url-encode params. Defaults to true.
리턴 void

isAvailable() 공개 정적인 메소드

public static isAvailable ( )

patch() 공개 메소드

public patch ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )

post() 공개 메소드

public post ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )

put() 공개 메소드

public put ( $uri, $params = [], $useEncoding = true, $customHeader = [], $fullResponse = false )

send() 보호된 메소드

using custom headers: $customHeader = array( 0 => 'Accept: text/plain', 1 => 'X-Foo: bar', 2 => 'X-Bar: baz', ); $response = $this->send($customHeader);
protected send ( array $customHeader = [], boolean $fullResponse = false ) : Response
$customHeader array An array of values. If not empty then previously added headers gets ignored.
$fullResponse boolean If true returns the full response (including headers).
리턴 Phalcon\Http\Client\Response

setAuth() 공개 메소드

Setup authentication
public setAuth ( string $user, string $pass, string $auth = 'basic' )
$user string
$pass string
$auth string

setConnectTimeout() 공개 메소드

public setConnectTimeout ( $timeout )

setCookies() 공개 메소드

Set cookies for this session
public setCookies ( array $cookies )
$cookies array

setOption() 공개 메소드

public setOption ( $option, $value )

setOptions() 공개 메소드

public setOptions ( $options )

setProxy() 공개 메소드

public setProxy ( $host, $port = 8080, $user = null, $pass = null )

setTimeout() 공개 메소드

public setTimeout ( $timeout )