/fhttp

C++ HTTP library based on Boost:::Asio networking

Primary LanguageC++

F(ast)HTTP

fhttp is as library that provides fairly simple interface for building HTTP based servers, it provides "auto" json de/serialization, swagger generation and much more!

For examples check out basic_http_server

Notice

fhttp is currently mostly just a POC and funny personal project

Features

  • Shared configuration
  • Shared state between handlers
  • Auto JSON de/serialization
  • Auto OpenAPI spec generation
  • Graceful shutdown
  • Regex pattern within URLs
  • Currently supports only HTTP version 1.*
  • Keep-alive Timeout
  • Middlewares using handler base classes that modify evaluate_request

todo

Development

  • To compile this project you need to have installed boost with filesystem regex thread chrono date_time json libs
mkdir build
cd build
cmake .. && make