Frends.HTTP.SendBytes / 1.6.0
Summary
Sends a binary body and returns the response as text.
Typical use — uploading a file to an API that answers with JSON or a plain status message
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 | Header[] |
– | Name: Header, Value: HeaderValue |
List of HTTP headers to be added to the request. |