HTTP

Frends.HTTP.SendAndReceiveBytes / 2.0.0

Summary

Sends a binary body and returns a binary response, keeping both directions undecoded.

Typical use — APIs that exchange documents or archives in both directions

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
2.0.02026-10-26
Changed
  • Breaking Result.ContentType is now a string instead of a MediaTypeHeaderValue object.
  • Upgraded the Task to target .NET 8.
  • Added Success and Error properties to the result.
  • Added ThrowErrorOnFailure (default true) and ErrorMessageOnFailure options. When ThrowErrorOnFailure is false, errors are returned in the result instead of being thrown.
1.6.02026-10-20
Changed
  • HTTP client cache key is now derived with PBKDF2-SHA256.
1.5.02026-05-13
Added
  • Added UseProxy, ProxyUrl, ProxyUsername, ProxyPassword, HttpProtocolVersion, and SslProtocolVersion options with proxy handler and protocol configuration support.
1.4.02026-03-02
Added
  • Added CertificateStoreLocation option to allow selection between CurrentUser and LocalMachine certificate stores when using certificate authentication.
1.3.02025-10-10
Changed
  • Changed the return type of SendAndReceiveBytes from Task to Task
    1.2.02025-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.02024-12-30
    Changed
    • Descriptions of ClientCertificate suboptions includes clearer information about usage in terms of different types of ClientCertificate.
    1.0.02023-06-01
    Added
    • Initial implementation.
    An unhandled error has occurred. Reload 🗙