ゴミ箱
|
#include <iostream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include "http/server.hpp"
#include "http/typed_headers.hpp"
#include "utils/convert.hpp"
Typedefs | |
using | tcp = boost::asio::ip::tcp |
Functions | |
void | hello_wolrd (http::Router::Context &&ctx) |
void | handle_ip (http::Router::Context &&ctx) |
void | handle_headers (http::Router::Context &&ctx) |
void | handle_status (http::Router::Context &&ctx) |
int | main (int, char[]) |
using tcp = boost::asio::ip::tcp |
void handle_headers | ( | http::Router::Context && | ctx | ) |
Handler for /heades
route
void handle_ip | ( | http::Router::Context && | ctx | ) |
Handler for /ip
route
void handle_status | ( | http::Router::Context && | ctx | ) |
Handler for /status/:code
route
void hello_wolrd | ( | http::Router::Context && | ctx | ) |
Root page
int main | ( | int | , |
char | [] | ||
) |