HTTP

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

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input class

Name Type Default Example Description
Method Method GET GET

The HTTP Method to be used with the request.

Possible values:

  • GET: GET Request.

  • POST: POST Request.

  • PUT: PUT Request.

  • PATCH: PATCH Request.

  • DELETE: DELETE Request.

  • HEAD: HEAD Request.

  • OPTIONS: OPTIONS Request.

  • CONNECT: CONNECT Request.

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.

An unhandled error has occurred. Reload 🗙