The HTTP body is stored in HttpMessage.cs as a byte array, which is not ideal since it increases memory usage when transfering a lot of data. Maybe this could be solved by optionally setting a filepath or a stream that the body can be read from or written to instead?
This would make it possible to remove the ReadLog method from Logger.cs and replace it with a "WriteLogToStream" method instead, improving memory usage.
The HTTP body is stored in HttpMessage.cs as a byte array, which is not ideal since it increases memory usage when transfering a lot of data. Maybe this could be solved by optionally setting a filepath or a stream that the body can be read from or written to instead?
This would make it possible to remove the
ReadLogmethod from Logger.cs and replace it with a "WriteLogToStream" method instead, improving memory usage.