For the complete documentation index, see llms.txt. This page is also available as Markdown.

RequestBytes

HTTP request with byte return type

Task version: 1.5.0

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Method : Method

The HTTP Method to be used with the request.

Possible values:

  • GET: The HTTP Method to be used with the request.

  • POST: The HTTP Method to be used with the request.

  • PUT: The HTTP Method to be used with the request.

  • PATCH: The HTTP Method to be used with the request.

  • DELETE: The HTTP Method to be used with the request.

  • HEAD: The HTTP Method to be used with the request.

  • OPTIONS: The HTTP Method to be used with the request.

  • CONNECT: The HTTP Method to be used with the request.

Default: 0 Example: GET

Url : String

The URL with protocol and path. You can include query parameters directly in the url.

Default: https://example.org/path/to Example: https://example.org/path/to

Message : String

The message text to be sent with the request.

Default: - Example: { "Body": "Message" }

Headers : Header[]

List of HTTP headers to be added to the request.

Default: - Example: Name: Header, Value: HeaderValue

Task Result

Name
Description

Body : Byte[]

Body of response Example: {"id": "abcdefghijkl123456789", "success": true, "errors": []}

BodySizeInMegaBytes : Double

Body size of response Example: 10.0

ContentType : MediaTypeHeaderValue

Header type of response Example: 10.0

Headers : Dictionary<String, String>

Headers of response Example: {[ "content-type": "application/json", ... ]}

StatusCode : Int32

Statuscode of response Example: 200

Task Changelog

Changelog for Task Frends.HTTP.RequestBytes.

[1.5.0] - 2026-05-13

Added

  • Added UseProxy, ProxyUrl, ProxyUsername, ProxyPassword, HttpProtocolVersion, and SslProtocolVersion options with proxy handler and protocol configuration support.

[1.4.0] - 2026-03-02

Added

  • Added CertificateStoreLocation option to allow selection between CurrentUser and LocalMachine certificate stores when using certificate authentication.

[1.3.0] - 2025-10-10

Changed

  • Changed the return type of RequestBytes from Task to Task

    [1.2.0] - 2025-03-25

    Changed

    • Update packages: Newtonsoft.Json 12.0.1 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.7.0 -> 17.13.0 MSTest.TestAdapter 2.1.2 -> 3.8.3 MSTest.TestFramework 2.1.2 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0 RichardSzalay.MockHttp 6.0.0 -> 7.0.0 xunit.extensibility.core 2.4.2 -> 2.9.3

    [1.1.0] - 2024-12-30

    Changed

    • Descriptions of ClientCertificate suboptions includes clearer information about usage in terms of different types of ClientCertificate.

    [1.0.1] - 2024-01-17

    Fixed

    • Fixed issues which CodeQL found in the codebase. Fixed Code Coverage

    [1.0.0] - 2023-01-27

    Added

    • Initial implementation of Frends.HTTP.Request.

Last updated

Was this helpful?