No description
Find a file
2012-10-03 23:47:59 -04:00
example Refactoring. 2012-10-03 21:55:01 -04:00
test Added post method support. 2012-10-03 23:47:59 -04:00
.gitignore Updated .gitignore. 2012-10-02 20:42:23 -04:00
httplib.h Added post method support. 2012-10-03 23:47:59 -04:00
Makefile Refactoring. 2012-10-03 20:11:22 -04:00
README.md Refactoring. 2012-10-03 20:11:22 -04:00

cpp-httplib

A C++ HTTP library.

The Boost Software License 1.0

Server Example

Inspired by Sinatra

#include <httplib.h>
using namespace httplib;

int main(void)
{
    Server svr("localhost", 1234);

    svr.get("/hi", [](Connection& c) {
        c.response.set_content("Hello World!", "text/plain");
    });

    svr.run();
}

Copyright (c) 2012 Yuji Hirose. All rights reserved.