yhirose/cpp-httplib

Feature request: Client: Post with content receiver

Green-Sky opened this issue ยท 3 comments

I have a usecase where client.Post() is called with a small body and the server response is a very lengthy string/json, where a content receiver would make sense.

And after all the difference between http GET PUT POST etc on the protocol level is just that, a word. ๐Ÿ˜

@Green-Sky thanks for the feedback. I didn't implement those because I simply don't need those. I don't expect any large response body when issuing any HTTP requests in my use cases except GET requests...

You can easily add such a POST method. Could you send a pull request to implement the method that you need with a unit test? Then, I'll review and merge it. Thanks!

@Green-Sky I definitely have interest in this feature as well; if you roll a PR let me know otherwise I'll take a stab at it myself. Thanks.

@jmont-dev feel free to implement it, i am currently occupied with something else.
Tag me when you have something to test/review :)