Added support for chunked http transfers

sf::Http now understands transfers that are sent using Chunked Transfer
Encoding (RFC 2616; section 3.6.1).
This commit is contained in:
Mario Liebisch 2012-12-11 19:08:56 +01:00
parent 08b49cc15c
commit 306b77bfc5
2 changed files with 53 additions and 5 deletions

View file

@ -316,6 +316,18 @@ public :
////////////////////////////////////////////////////////////
void parse(const std::string& data);
////////////////////////////////////////////////////////////
/// \brief Read values passed in the answer header
///
/// This function is used by Http to extract values passed
/// in the response.
///
/// \param in String stream containing the header values
///
////////////////////////////////////////////////////////////
void parseFields(std::istream &in);
////////////////////////////////////////////////////////////
// Types
////////////////////////////////////////////////////////////