PHP Trait Lndj\Traits\BuildRequest

Datei anzeigen Open project: lndj/lcrawl

Public Methods

Method Description
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.

Method Details

buildGetRequest() public method

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
return type

buildPostRequest() public method

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.
return mixed