Jelix 1.6.40

jHttp extends netHttp
in package

To send http request

Tags
subpackage

utils

see
netHttp

Table of Contents

$user_agent  : mixed
delete()  : bool
DELETE Request
put()  : bool
PUT Request
debug()  : mixed

Properties

$user_agent

protected mixed $user_agent = 'Clearbricks/Jelix HTTP Client'

Methods

delete()

DELETE Request

public delete(string $path[, array<string|int, mixed> $data = false ]) : bool

Executes a DELETE request for the specified path. If $data is specified, appends it to a query string as part of the get request. $data can be an array of key value pairs, in which case a matching query string will be constructed. Returns true on success.

Parameters
$path : string

Request path

$data : array<string|int, mixed> = false

Request parameters

Return values
bool

put()

PUT Request

public put(string $path, array<string|int, mixed> $data[, array<string|int, mixed> $charset = null ][, mixed $contentType = null ]) : bool

Executes a PUT request for the specified path.

Parameters
$path : string

Request path

$data : array<string|int, mixed>

Request parameters

$charset : array<string|int, mixed> = null

Request charset

$contentType : mixed = null
Return values
bool

debug()

protected debug(mixed $msg[, mixed $object = false ]) : mixed
Parameters
$msg : mixed
$object : mixed = false
Return values
mixed

Search results