Created
March 31, 2017 15:42
-
-
Save ebongzzang/ebf83cc86701fa638374e5def7e5aa27 to your computer and use it in GitHub Desktop.
C++ REst SDK example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Listener.h" | |
Listener::Listener(utility::string_t url) : m_listener(url) | |
{ | |
m_listener.support(methods::GET, std::bind(&Listener::handle_get,this,std::placeholders::_1)); | |
m_listener.support(methods::PUT, std::bind(&Listener::handle_put,this,std::placeholders::_1)); | |
m_listener.support(methods::POST, std::bind(&Listener::handle_post,this,std::placeholders::_1)); | |
m_listener.support(methods::DEL, std::bind(&Listener::handle_delete,this,std::placeholders::_1)); | |
} | |
void Listener::handle_get(http_request message) | |
{ | |
} | |
void Listener::handle_post(http_request message) | |
{ | |
} | |
void Listener::handle_put(http_request message) | |
{ | |
} | |
void Listener::handle_delete(http_request message) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment