Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cinderblock.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<cinder>
<block
name="Cinder-HTTP(S)"
name="Cinder-HTTP"
id="org.libcinder.HTTPS"
author="Cinder Project, Ryan Bartley"
license="BSD, Boost"
summary="Implements http and https protocols with openssl as the security."
core="true"
git="[email protected]:ryanbartley/Cinder-HTTP.git"
>
<supports os="macosx" />
<supports os="msw" />
Expand Down
6 changes: 5 additions & 1 deletion src/cinder/http/request_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ namespace http {

enum class RequestMethod {
GET,
POST
POST,
PUT,
DEL
};

using RequestRef = std::shared_ptr<struct Request>;
Expand Down Expand Up @@ -45,6 +47,8 @@ struct Request {
switch( method ) {
case RequestMethod::GET: return "GET"; break;
case RequestMethod::POST: return "POST"; break;
case RequestMethod::PUT: return "PUT"; break;
case RequestMethod::DEL: return "DELETE"; break;
default: return "GET"; break;
}
}
Expand Down