X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FHTTPRequest.hxx;h=0c6e2685c6f1df956d95d1bf2388600b27c5ea8c;hb=201cb61f842ef50a19438e3872ba22e588fa1afc;hp=8d8a227054a12ef030523d8db8b0a2cd8e11269e;hpb=69ef461e6debc526ce66493af2c6da9119a6f8c2;p=simgear.git diff --git a/simgear/io/HTTPRequest.hxx b/simgear/io/HTTPRequest.hxx index 8d8a2270..0c6e2685 100644 --- a/simgear/io/HTTPRequest.hxx +++ b/simgear/io/HTTPRequest.hxx @@ -43,7 +43,25 @@ public: void setResponseLength(unsigned int l); virtual unsigned int responseLength() const; + + /** + * Query the size of the request body. -1 (the default value) means no + * request body + */ + virtual int requestBodyLength() const; + /** + * Retrieve the body data bytes. Will be passed the maximum body bytes + * to return in the buffer, and should update count with the actual number + * of bytes written. + */ + virtual void getBodyData(char* s, int& count) const; + + /** + * retrieve the request body content type. Default is text/plain + */ + virtual std::string requestBodyType() const; + /** * running total of body bytes received so far. Can be used * to generate a completion percentage, if the response length is