Documentation

SHttp
in package

Table of Contents

Properties

$_instance  : mixed

Methods

get()  : string|array<string|int, mixed>
get url
getInstance()  : mixed
post()  : string|array<string|int, mixed>
post url

Properties

$_instance

private static mixed $_instance = \null

Methods

get()

get url

public static get(string $url[, array<string|int, mixed> $params = array() ][, array<string|int, mixed> $cookies = array() ][, bool $returnHeader = false ][, mixed $timeout = 5 ][, mixed $headers = array() ]) : string|array<string|int, mixed>
Parameters
$url : string
$params : array<string|int, mixed> = array()
$cookies : array<string|int, mixed> = array()
$returnHeader : bool = false
$timeout : mixed = 5
$headers : mixed = array()
Return values
string|array<string|int, mixed>

getInstance()

public static getInstance() : mixed

post()

post url

public static post(string $url[, array<string|int, mixed>|string $params = array() ][, array<string|int, mixed> $cookies = array() ][, bool $returnHeader = false ][, mixed $timeout = 5 ][, mixed $headers = array() ]) : string|array<string|int, mixed>
Parameters
$url : string
$params : array<string|int, mixed>|string = array()
$cookies : array<string|int, mixed> = array()
$returnHeader : bool = false
$timeout : mixed = 5
$headers : mixed = array()
Return values
string|array<string|int, mixed>
Loading…
On this page

Search results