Skip to content

seelabutk/pistache

 
 

Repository files navigation

Pistache

Travis Build Status

Pistache is a modern and elegant HTTP and REST framework for C++.

It is entirely written in pure-C++11 and provides a clear and pleasant API

Full documentation is located at http://pistache.io.

Fork status

This is a fork from oktal/pistache, with the aim of faster bug fixes/merges.

So far:

Example

Hello World (server)

#include <pistache/endpoint.h>

using namespace Net;

struct HelloHandler : public Http::Handler {
    HTTP_PROTOTYPE(HelloHandler)

    void onRequest(const Http::Request& request, Http::ResponseWriter writer) {
        writer.send(Http::Code::Ok, "Hello, World!");
    }
};

int main() {
    Http::listenAndServe<HelloHandler>("*:9080");
}

About

A high-performance REST Toolkit written in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.5%
  • Python 8.9%
  • CMake 0.8%
  • M4 0.7%
  • Shell 0.5%
  • Makefile 0.5%
  • C 0.1%