LXD PHP Client Documentation v0.0.1
Class Lxd Lib

Curl

Methods
  • __construct(array $config)  :  void
  • setOptions()  :  void
  • get(string $url, array $parameters, array $headers)  :  array | string
    GET
  • post(string $url, variable $parameters, array $headers)  :  array
    POST
  • put(string $url, array $parameters, array $headers)  :  array
    PUT
  • patch(string $url, array $parameters, array $headers)  :  array
    PATCH
  • delete(string $url, array $headers)  :  array
    DELETE
Methods Details
  • public function __construct(array $config)
  • final private function setOptions()
  • public function get(string $url, array $parameters, array $headers)
    GET
    Should handle non json response, like with /containers/files
  • public function post(string $url, variable $parameters, array $headers)
    POST
    Should handle non array data parameters, like with /containers/files
  • public function put(string $url, array $parameters, array $headers)
    PUT
  • public function patch(string $url, array $parameters, array $headers)
    PATCH
  • public function delete(string $url, array $headers)
    DELETE