PHP 클래스 Doctrine\OrientDB\Binding\Client\Http\CurlClient

파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$authentication
$cookies
$curl
$restart

공개 메소드들

메소드 설명
__construct ( boolean $restart = false, integer $timeout = 10 ) Creates a new HTTP client based on cURL.
__destruct ( ) Closes the underlying cURL handle.
delete ( String $location, $body = null ) : CurlClientResponse Executes a DELETE on a resource.
execute ( String $method, String $location ) : CurlClientResponse Executes a Curl.
get ( String $location ) : CurlClientResponse GETs a resource.
post ( String $location, String $body ) : CurlClientResponse Executes a POST on a location.
put ( String $location, String $body ) : CurlClientResponse PUTs a resource.
restart ( ) Reinitializes the client for a completely new session.
setAuthentication ( String $credentials ) Sets the authentication string for the next HTTP requests.
setHeader ( type $header, type $value ) Sets an HTTP header to send within the request.
setTimeout ( integer $timeout ) Sets a timeout for the current cURL handler's requests.

보호된 메소드들

메소드 설명
createCurlHandle ( ) : resource Creates and initializes the underlying cURL handle.
getDefaultCurlOptions ( ) : array Returns an array with a set of default options for cURL.
getRequestCookies ( ) : string Returns a string with the list of cookies for the Cookie header.

메소드 상세

__construct() 공개 메소드

Creates a new HTTP client based on cURL.
public __construct ( boolean $restart = false, integer $timeout = 10 )
$restart boolean
$timeout integer

__destruct() 공개 메소드

Closes the underlying cURL handle.
public __destruct ( )

createCurlHandle() 보호된 메소드

Creates and initializes the underlying cURL handle.
protected createCurlHandle ( ) : resource
리턴 resource

delete() 공개 메소드

Executes a DELETE on a resource.
public delete ( String $location, $body = null ) : CurlClientResponse
$location String
리턴 CurlClientResponse

execute() 공개 메소드

Executes a Curl.
public execute ( String $method, String $location ) : CurlClientResponse
$method String
$location String
리턴 CurlClientResponse

get() 공개 메소드

GETs a resource.
public get ( String $location ) : CurlClientResponse
$location String
리턴 CurlClientResponse

getDefaultCurlOptions() 보호된 메소드

Returns an array with a set of default options for cURL.
protected getDefaultCurlOptions ( ) : array
리턴 array

getRequestCookies() 보호된 메소드

Returns a string with the list of cookies for the Cookie header.
protected getRequestCookies ( ) : string
리턴 string

post() 공개 메소드

Executes a POST on a location.
public post ( String $location, String $body ) : CurlClientResponse
$location String
$body String
리턴 CurlClientResponse

put() 공개 메소드

PUTs a resource.
public put ( String $location, String $body ) : CurlClientResponse
$location String
$body String
리턴 CurlClientResponse

restart() 공개 메소드

Reinitializes the client for a completely new session.
public restart ( )

setAuthentication() 공개 메소드

Sets the authentication string for the next HTTP requests.
public setAuthentication ( String $credentials )
$credentials String

setHeader() 공개 메소드

Sets an HTTP header to send within the request.
public setHeader ( type $header, type $value )
$header type
$value type

setTimeout() 공개 메소드

Sets a timeout for the current cURL handler's requests.
public setTimeout ( integer $timeout )
$timeout integer

프로퍼티 상세

$authentication 보호되어 있는 프로퍼티

protected $authentication

$cookies 보호되어 있는 프로퍼티

protected $cookies

$curl 보호되어 있는 프로퍼티

protected $curl

$restart 보호되어 있는 프로퍼티

protected $restart