You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-5Lines changed: 33 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@ SwiftApiAdapter is a Swift package designed to streamline the process of retriev
14
14
-**Extra Data Management**: Store additional necessary information about the API using the `extraData` field.
15
15
-**Web Page Content Loading**: Load and process web page content using the same interface as for API content.
16
16
17
+
### Important Note About `GET` Requests
18
+
19
+
In compliance with standard HTTP usage, **SwiftApiAdapter does not attach any request body if the HTTP method is `GET`**. If your configuration specifies `GET` along with a non-empty body, the body will be ignored. If you need to send a payload, please switch to a method like `POST` or `PUT`.
20
+
17
21
## Installation
18
22
19
23
### Swift Package Manager
@@ -22,7 +26,7 @@ Add SwiftApiAdapter to your project via Swift Package Manager by including it in
You can customize headers for each API request, allowing the setting of `User-Agent` and other necessary headers depending on the endpoint requirements.
402
+
You can customize headers for each API request, allowing the setting of `User-Agent` and other necessary headers depending on the endpoint requirements. However, remember that **for GET requests, any provided body data will be ignored**.
0 commit comments