Skip to content
Snippets Groups Projects
Commit 758f1d2f authored by Lucas García's avatar Lucas García
Browse files

feat: more docstrings

parent 262b9416
No related branches found
No related tags found
1 merge request!3Multi backend plugin
......@@ -9,6 +9,13 @@ require_once 'class-multipart.php';
class Http_Client
{
/**
* Default request settings.
*
* @since 3.0.0
*
* @var array $settings_defaults.
*/
private const settings_defaults = [
'params' => [],
'data' => [],
......@@ -82,7 +89,7 @@ class Http_Client
* mimetype should be encoded before and passed in as string.
* If $files is defined and is array, content type switches to multipart/form-data.
*
* @sice 3.0.0
* @since 3.0.0
*
* @param string $url Target URL.
* @param array $data Associative array with the request payload.
......@@ -109,7 +116,7 @@ class Http_Client
/**
* Performs a POST request with multipart/form-data content type payload.
*
* @sice 3.0.0
* @since 3.0.0
*
* @param string $url Target URL.
* @param array $data Associative array with the request payload.
......@@ -149,7 +156,7 @@ class Http_Client
* mimetype should be encoded before and passed in as string.
* If $files is defined and is array, content type switches to multipart/form-data.
*
* @sice 3.0.0
* @since 3.0.0
*
* @param string $url Target URL.
* @param array $data Associative array with the request payload.
......@@ -176,7 +183,7 @@ class Http_Client
/**
* Performs a PUT request with multipart/form-data content type payload.
*
* @sice 3.0.0
* @since 3.0.0
*
* @param string $url Target URL.
* @param array $data Associative array with the request payload.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment