Http.fs icon indicating copy to clipboard operation
Http.fs copied to clipboard

Send body from stream

Open xperiandri opened this issue 6 years ago • 1 comments

If I serialize object or object graph to JSON it would be nice to exclude intermediary step of string object or byte array creation by giving a TextReader instance which will serialize object on the fly into a complete request data.

xperiandri avatar Aug 24 '19 12:08 xperiandri

Hmm, yes sure, you can set streams in body forms https://github.com/haf/Http.fs/blob/master/HttpFs/HttpFs.fs#L309 — the write-straight-to-stream requirement is otherwise not implemented right now.

haf avatar Aug 24 '19 13:08 haf