MIDDAG for Moodle

http_client_adapter extends facade

Facade for local_middag\framework\support\http_client_adapter.

Tags
see
http_client_adapter
mixin

Table of Contents

Methods

delete()  : mixed
get()  : mixed
get_facade_accessor()  : string
Return the service accessor key for this facade.
patch()  : mixed
post()  : mixed
put()  : mixed
set_authorization_bearer()  : http_client_adapter
set_content_type()  : http_client_adapter
set_header()  : http_client_adapter

Methods

delete()

public static delete(string $uri[, array<string|int, mixed> $query = = '[]' ]) : mixed
Parameters
$uri : string
$query : array<string|int, mixed> = = '[]'

get()

public static get(string $uri[, array<string|int, mixed> $query = = '[]' ]) : mixed
Parameters
$uri : string
$query : array<string|int, mixed> = = '[]'

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

patch()

public static patch(string $uri[, array<string|int, mixed> $data = = '[]' ]) : mixed
Parameters
$uri : string
$data : array<string|int, mixed> = = '[]'

post()

public static post(string $uri[, array<string|int, mixed> $data = = '[]' ][, bool $as_json = = 'true' ]) : mixed
Parameters
$uri : string
$data : array<string|int, mixed> = = '[]'
$as_json : bool = = 'true'

put()

public static put(string $uri[, array<string|int, mixed> $data = = '[]' ]) : mixed
Parameters
$uri : string
$data : array<string|int, mixed> = = '[]'

set_authorization_bearer()

public static set_authorization_bearer(string $token) : http_client_adapter
Parameters
$token : string
Return values
http_client_adapter

set_content_type()

public static set_content_type(string $content_type) : http_client_adapter
Parameters
$content_type : string
Return values
http_client_adapter

set_header()

public static set_header(string $key, string $value) : http_client_adapter
Parameters
$key : string
$value : string
Return values
http_client_adapter

        
On this page

Search results