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.
The
IHttpRequest
interface and theHttpRequest
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.