Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wpct Http Bridge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codeccoop
WordPress
plugins
Wpct Http Bridge
Commits
758f1d2f
Commit
758f1d2f
authored
4 months ago
by
Lucas García
Browse files
Options
Downloads
Patches
Plain Diff
feat: more docstrings
parent
262b9416
No related branches found
No related tags found
1 merge request
!3
Multi backend plugin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/class-http-client.php
+11
-4
11 additions, 4 deletions
includes/class-http-client.php
with
11 additions
and
4 deletions
includes/class-http-client.php
+
11
−
4
View file @
758f1d2f
...
...
@@ -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
* @si
n
ce 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
* @si
n
ce 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
* @si
n
ce 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
* @si
n
ce 3.0.0
*
* @param string $url Target URL.
* @param array $data Associative array with the request payload.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment