PHP 트레잇 Lndj\Traits\BuildRequest

파일 보기 프로젝트 열기: lndj/lcrawl

공개 메소드들

메소드 설명
buildGetRequest ( type | string $uri, type | array $param = [], type | array $headers = [], type | boolean $isAsync = false ) : type Build the get request.
buildPostRequest ( $uri, $query, $param, array $headers = [], boolean $isAsync = false ) : mixed Build the POST request.

메소드 상세

buildGetRequest() 공개 메소드

Build the get request.
public buildGetRequest ( type | string $uri, type | array $param = [], type | array $headers = [], type | boolean $isAsync = false ) : type
$uri type | string
$param type | array
$headers type | array
$isAsync type | boolean
리턴 type

buildPostRequest() 공개 메소드

Build the POST request.
public buildPostRequest ( $uri, $query, $param, array $headers = [], boolean $isAsync = false ) : mixed
$uri
$query
$param
$headers array A array of headers.
$isAsync boolean If use getAll(), by Async request.
리턴 mixed