AndreLouisCaron/httpxx — Issue #7: Allow setting Response's F_SKIPBODY flag
Author: pezcode
Created: 2012-03-02 02:36:50+00:00
State: open

Not necessarily needed, but without it, Flags::skipbody() is useless. Normally, the application should know whether this response is for a HEAD request (meaning complete header, but no body). But it would allow for loading off the information on the Response object without having to pass on further state variables.
Maybe just add a bool to the constructor is_head_response. Then in the on_headers_complete callback, you should return 1. The infrastructure to override the callback in Response seems to be there.