AdiantiHttpClient
in package
Basic HTTP Client request
Tags
Table of Contents
Methods
- request() : mixed
- Execute a HTTP request
Methods
request()
Execute a HTTP request
public
static request(mixed $url[, mixed $method = 'POST' ][, mixed $params = [] ][, mixed $authorization = null ][, mixed $headers = [] ][, mixed $assoc = false ]) : mixed
Parameters
- $url : mixed
-
URL
- $method : mixed = 'POST'
-
method type (GET,PUT,DELETE,POST)
- $params : mixed = []
-
request body
- $authorization : mixed = null
- $headers : mixed = []
- $assoc : mixed = false