File 0382-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/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 50fa2ebe83..f7b2848359 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -332,7 +332,7 @@ Options details:
 - **`body_format`** - Defines if the body is to be delivered as a string or
   binary. This option is only valid for the synchronous request.
 
-  Default is `string`.
+  Default is `string`. Asynchronous requests always use `binary`.
 
 - **`full_result`** - Defines if a "full result" is to be returned to the caller
   (that is, the body, the headers, and the entire status line) or not (the body
-- 
2.43.0

openSUSE Build Service is sponsored by