public class HTTPBodyStreamFloret : InterceptingFloret
HTTPBodyStreamFloret can modify a
Record where the request uses a
instead of setting the data on the request itself.
It will read all data from the stream and set it as data on the request. This is helpful
if you want to inspect
Records in the storage or want to modify the requests body
before it is sent to the server.
public var enabled: Bool
Will create a new
public init(maximumConvertedByteSize: Int64 = 50 * 1024 )
The maximum size until which the data should be converted. Once more data is read from the
httpBodyStream, the record will not be changed and the
httpBodyStreamis kept. Default is 50 * 1024.