[PR #231] [MERGED] Ability to specify body data for PUT request #578

Closed
opened 2026-03-03 16:49:32 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/231
Author: @ghost
Created: 5/20/2016
Status: Merged
Merged: 7/7/2016
Merged by: @phimage

Base: masterHead: put-body


📝 Commits (1)

  • 72b0dba Allowed ability to specify body data for PUT request

📊 Changes

2 files changed (+21 additions, -7 deletions)

View changed files

📝 OAuthSwift/OAuthSwiftClient.swift (+8 -6)
📝 OAuthSwiftTests/OAuthSwiftClientTests.swift (+13 -1)

📄 Description

  • Added an optional "body" parameter to the put method and request method
  • Added setting the HTTP Body property to the value passed in to the createRequest method
  • Added unit test for making sure the body is set

We have a use case where we need to make a PUT request with data in the body of the request. We couldn't find any publicly accessible way to do this currently, so recommending adding the ability to pass body data in to the request methods.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OAuthSwift/OAuthSwift/pull/231 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/20/2016 **Status:** ✅ Merged **Merged:** 7/7/2016 **Merged by:** [@phimage](https://github.com/phimage) **Base:** `master` ← **Head:** `put-body` --- ### 📝 Commits (1) - [`72b0dba`](https://github.com/OAuthSwift/OAuthSwift/commit/72b0dba6c58f0ccaf368de54f0b99bf8f137579d) Allowed ability to specify body data for PUT request ### 📊 Changes **2 files changed** (+21 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `OAuthSwift/OAuthSwiftClient.swift` (+8 -6) 📝 `OAuthSwiftTests/OAuthSwiftClientTests.swift` (+13 -1) </details> ### 📄 Description - Added an optional "body" parameter to the put method and request method - Added setting the HTTP Body property to the value passed in to the createRequest method - Added unit test for making sure the body is set We have a use case where we need to make a PUT request with data in the body of the request. We couldn't find any publicly accessible way to do this currently, so recommending adding the ability to pass body data in to the request methods. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:49:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#578
No description provided.