class HttpClient (View source)

Methods

void
__construct(string $url = null)

HttpClient Constructor.

get(string $url, array $data = [])

Make get requete

post(string $url, array $data = [])

make post requete

put(string $url, array $data = [])

Make put requete

mixed
addAttach(string $attach)

Attach new file

addHeaders(array $headers)

Add aditionnal header

Details

void __construct(string $url = null)

HttpClient Constructor.

Parameters

string $url

Return Value

void

Parser get(string $url, array $data = [])

Make get requete

Parameters

string $url
array $data

Return Value

Parser

Parser post(string $url, array $data = [])

make post requete

Parameters

string $url
array $data

Return Value

Parser

Parser put(string $url, array $data = [])

Make put requete

Parameters

string $url
array $data

Return Value

Parser

mixed addAttach(string $attach)

Attach new file

Parameters

string $attach

Return Value

mixed

HttpClient addHeaders(array $headers)

Add aditionnal header

Parameters

array $headers

Return Value

HttpClient