Frends.HTTP.RequestBytes / 1.5.0
Summary
Sends a request with a text body and returns the response as bytes, leaving binary content undecoded.
Typical use — fetching files, images or archives from an API, where text decoding would corrupt them
Input class
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Method | Method |
GET |
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. |
| Message | String |
– | { "Body": "Message" } |
The message text to be sent with the request. |
| Headers | Header[] |
– | Name: Header, Value: HeaderValue |
List of HTTP headers to be added to the request. |