File 0892-inets-Document-asynchronous-httpc-request-body-forma.patch of Package erlang

From 9a6f996fe8074890986def89bd7510fa821ff2e3 Mon Sep 17 00:00:00 2001
From: Johannes Christ <jc@jchri.st>
Date: Sun, 2 Mar 2025 16:14:04 +0100
Subject: [PATCH] inets: Document asynchronous httpc request body format

The default `string` option converts messages from the client from
binary to string. `binary` is the default, e.g. `test/httpc_SUITE.erl`,
`receive_streamed_body`.
---
 lib/inets/src/http_client/httpc.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/inets/doc/src/httpc.xml b/lib/inets/doc/src/httpc.xml
index 50fa2ebe83..f7b2848359 100644
--- a/lib/inets/doc/src/httpc.xml
+++ b/lib/inets/doc/src/httpc.xml
@@ -319,7 +319,8 @@
             <p>Defines if the body is to be delivered as a string or
 	          binary. This option is only valid for the synchronous
 	          request.</p>
-            <p>Default is <c>string</c>.</p>
+            <p>Default is <c>string</c>.
+               Asynchronous requests always use <c>binary</c>.</p>
 	        </item>
 
           <tag><c>full_result</c></tag>
-- 
2.43.0

openSUSE Build Service is sponsored by