PHP 클래스 Habari\CURLRequestProcessor

상속: extends RequestProcessor
파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__construct ( )
_headerfunction ( $ch, $str ) : integer cURL will hand each header received by the *response* to this method, so we use it to conveniently capture them for storing in case the user wants them.
execute ( $method, $url, $headers, $body, $config )
get_response_body ( )
get_response_headers ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

_headerfunction() 공개 메소드

cURL will hand each header received by the *response* to this method, so we use it to conveniently capture them for storing in case the user wants them.
public _headerfunction ( $ch, $str ) : integer
$ch resource The cURL handle from curl_init() that is executing.
$str string The header received from the response. Should always be a single header at a time.
리턴 integer The length of the header. Used by cURL to report the header_size returned by the curl_getinfo() method.

execute() 공개 메소드

public execute ( $method, $url, $headers, $body, $config )

get_response_body() 공개 메소드

public get_response_body ( )

get_response_headers() 공개 메소드