PHP 클래스 Phue\Transport\Adapter\Curl

상속: implements Phue\Transport\Adapter\AdapterInterface
파일 보기 프로젝트 열기: sqmk/phue

보호된 프로퍼티들

프로퍼티 타입 설명
$curl resource cURL resource

공개 메소드들

메소드 설명
__construct ( ) Constructs a cURL adapter
close ( ) Closes the cURL connection
getContentType ( ) : string Get response content type
getHttpStatusCode ( ) : string Get response http status code
open ( ) Opens the connection
send ( string $address, string $method, string $body = null ) : string Sends request

메소드 상세

__construct() 공개 메소드

Constructs a cURL adapter
public __construct ( )

close() 공개 메소드

Closes the cURL connection
public close ( )

getContentType() 공개 메소드

Get response content type
public getContentType ( ) : string
리턴 string Response content type

getHttpStatusCode() 공개 메소드

Get response http status code
public getHttpStatusCode ( ) : string
리턴 string Response http code

open() 공개 메소드

Opens the connection
public open ( )

send() 공개 메소드

Sends request
public send ( string $address, string $method, string $body = null ) : string
$address string Request path
$method string Request method
$body string Body data
리턴 string Result

프로퍼티 상세

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

cURL resource
protected resource $curl
리턴 resource