@cappitolian/http-local-server-swifter 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -267,6 +267,15 @@ public class HttpLocalServerSwifter {
267
267
  if (body != null)
268
268
  requestData.put("body", body);
269
269
 
270
+ // Add headers
271
+ JSObject headersObj = new JSObject();
272
+
273
+ for (Map.Entry<String, String> entry : headers.entrySet()) {
274
+ headersObj.put(entry.getKey(), entry.getValue());
275
+ }
276
+
277
+ requestData.put("headers", headersObj);
278
+
270
279
  CompletableFuture<String> future = new CompletableFuture<>();
271
280
  pendingResponses.put(requestId, future);
272
281
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappitolian/http-local-server-swifter",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "Runs a local HTTP server on your device, accessible over LAN. Supports connect, disconnect, GET, and POST methods with IP and port discovery.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",