HTTP

Frends.HTTP.Request / 1.13.0

Summary

Sends an HTTP request with a text or JSON body and returns status, headers and body. The general-purpose Task for any HTTP API, and the fallback whenever no dedicated Frends Task exists.

Typical use — REST and webhook calls of every kind; the bytes variants are for payloads that must not be treated as text

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.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.

ResultMethod ReturnFormat JToken REST

The HTTP result method to be used with the request.

Possible values:

  • String: HTTP result as a string.

  • JToken: REST result as an JToken.

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 🗙