Frends.HTTP.SendAndReceiveBytes / 2.1.0
Summary
Sends a binary body and returns a binary response, keeping both directions undecoded.
Typical use — APIs that exchange documents or archives in both directions
Input class
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Method | Method |
POST |
GET |
The HTTP Method to be used with the request. Possible values:
|
| Url | String |
https://example.org/path/to |
https://example.org/path/to |
The URL with protocol and path. You can include query parameters directly in the url. |
| ContentBytes | Byte[] |
– | { "Body": "Message" } |
The content to send as byte array |
| Headers | StandardHeader[] |
– | Name: Header, Value: HeaderValue |
List of HTTP headers to be added to the request. |
| SecretHeaders | SecretHeader[] |
– | [ { Name = "x-api-key", Value = "my-secret-key" } ] |
List of HTTP headers treated as secrets, which will be added to the request. |