skybrud / Skybrud.Essentials.Http

.NET library for making HTTP requests.
https://packages.skybrud.dk/skybrud.essentials.http/
MIT License
1 stars 0 forks source link

Added support for binary request bodies #4

Closed abjerner closed 2 years ago

abjerner commented 2 years ago

The IHttpRequest interface and the HttpRequest class currently support setting a request body based either on a raw string or a list of POST data.

In some cases, an endpoint might expect a binary request body for file uploads (rather than multipart POST data). To also support those scenarios, there should be a way to set the request body to an array of bytes.