Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
sf::Http lacks support for PUT and DELETE request methods #257
At present sf::Http::Request does not support the PUT and DELETE methods of sending Http requests.
These are often sent by clients being used in a REST architecture, and as such support for them would aid in people creating networked games (for example).
Implementing this would require adding to the sf::Http::Request::Method enumerator the related values, and modifying the sf::Http::SendRequest function to send http requests correctly using these new methods.
Upon some examination, it looks like the change may simply require modifying the std::string Http::Request::prepare() const function in SFML/Network/Http.cpp by adding:
after line 111. And adding to include/SFML/Network/Http.hpp
after line 65.