Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
httpclient
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webas
httpclient
Commits
2b9bd0f7
Commit
2b9bd0f7
authored
3 years ago
by
Jaroslav Petrusevic
Browse files
Options
Downloads
Patches
Plain Diff
make a PUT request support
parent
51e0e9f2
No related branches found
Branches containing commit
Tags
v2.0.8
Tags containing commit
No related merge requests found
Pipeline
#3685
failed with stage
Stage:
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/HttpClient.php
+11
-0
11 additions, 0 deletions
src/HttpClient.php
with
11 additions
and
0 deletions
src/HttpClient.php
+
11
−
0
View file @
2b9bd0f7
...
...
@@ -205,6 +205,17 @@ class HttpClient
return
$this
;
}
public
function
put
(
$uri
=
''
,
array
$json
=
[])
{
// make a PUT request
$this
->
response
=
$this
->
getClient
()
->
put
(
$uri
,
[
'json'
=>
$json
,
]);
return
$this
;
}
public
function
postFormMultipart
(
$uri
=
''
,
array
$params
=
[])
{
$array_multipart
=
[];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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