No description
Find a file
2012-10-04 00:52:12 -04:00
example Refactoring. 2012-10-04 00:38:32 -04:00
test Fixed problem with closing socket. 2012-10-04 00:52:12 -04:00
.gitignore Updated .gitignore. 2012-10-02 20:42:23 -04:00
httplib.h Fixed problem with closing socket. 2012-10-04 00:52:12 -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.