add HTTP support for PUT and DELETE
Signed-off-by: binary1248 <binary1248@hotmail.com>
This commit is contained in:
parent
5250cc97d5
commit
749cbb2ff8
2 changed files with 10 additions and 6 deletions
|
@ -108,9 +108,11 @@ std::string Http::Request::prepare() const
|
|||
switch (m_method)
|
||||
{
|
||||
default :
|
||||
case Get : method = "GET"; break;
|
||||
case Post : method = "POST"; break;
|
||||
case Head : method = "HEAD"; break;
|
||||
case Get : method = "GET"; break;
|
||||
case Post : method = "POST"; break;
|
||||
case Head : method = "HEAD"; break;
|
||||
case Put : method = "PUT"; break;
|
||||
case Delete : method = "DELETE"; break;
|
||||
}
|
||||
|
||||
// Write the first line containing the request type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue