avplayer/avhttp — pull request #13 by microcai (2013-09-14 16:53:27+00:00)
Title: New request body

currently, when you want to post , you put post body to opts, and set the content there with "_body" as key .

but, how about very very big post ?

how about when we need to generate it on-the-fly ?

---

here is the answer:

feed the opts with inter_thread_stream, and then you can feed the data to the stream. avhttp will read all that body from the strem.

I've implemented this in new_request_body branch.

---

btw, it is planed that avhttp can fake the 100-continue on the server that does not support it. then you can use write to write the body.

and this will be implemented soon !

soon after that, you can choose what ever you want .

---

the next plain is to have opt.body_stream() accept "ANY" stream type that meets asio ReadStream requirement.