PHP 클래스 AwsInspector\Helper\Curl

파일 보기 프로젝트 열기: aoepeople/stackformation 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$connection AwsInspector\Ssh\Connection | AwsInspector\Ssh\LocalConnection | null
$headers array
$maxTime integer
$postData string
$responseBody string
$responseHeaders array
$responseStatus string
$url string

공개 메소드들

메소드 설명
__construct ( string $url, array $headers = [], Connection $connection = null, integer $maxTime = 5 )
doRequest ( )
getResponseBody ( ) : mixed
getResponseCode ( ) : string
getResponseHeader ( string $header ) : mixed
getResponseHeaders ( ) : array
getResponseStatus ( ) : string
setPostData ( string $postData )
setResponseCode ( string $status )

보호된 메소드들

메소드 설명
getCurlCommand ( ) : string
getCurlError ( string $exitCode ) : mixed | string
getCurleMap ( ) : array
parseHeader ( string $line )

메소드 상세

__construct() 공개 메소드

public __construct ( string $url, array $headers = [], Connection $connection = null, integer $maxTime = 5 )
$url string
$headers array
$connection AwsInspector\Ssh\Connection
$maxTime integer

doRequest() 공개 메소드

public doRequest ( )

getCurlCommand() 보호된 메소드

protected getCurlCommand ( ) : string
리턴 string

getCurlError() 보호된 메소드

protected getCurlError ( string $exitCode ) : mixed | string
$exitCode string
리턴 mixed | string

getCurleMap() 보호된 메소드

protected getCurleMap ( ) : array
리턴 array

getResponseBody() 공개 메소드

public getResponseBody ( ) : mixed
리턴 mixed

getResponseCode() 공개 메소드

public getResponseCode ( ) : string
리턴 string

getResponseHeader() 공개 메소드

public getResponseHeader ( string $header ) : mixed
$header string
리턴 mixed

getResponseHeaders() 공개 메소드

public getResponseHeaders ( ) : array
리턴 array

getResponseStatus() 공개 메소드

public getResponseStatus ( ) : string
리턴 string

parseHeader() 보호된 메소드

protected parseHeader ( string $line )
$line string

setPostData() 공개 메소드

public setPostData ( string $postData )
$postData string

setResponseCode() 공개 메소드

public setResponseCode ( string $status )
$status string

프로퍼티 상세

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

protected Connection,AwsInspector\Ssh|LocalConnection,AwsInspector\Ssh|null $connection
리턴 AwsInspector\Ssh\Connection | AwsInspector\Ssh\LocalConnection | null

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

protected array $headers
리턴 array

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

protected int $maxTime
리턴 integer

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

protected string $postData
리턴 string

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

protected string $responseBody
리턴 string

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

protected array $responseHeaders
리턴 array

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

protected string $responseStatus
리턴 string

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

protected string $url
리턴 string