RESTinio is a header-only C++14 library that gives you an embedded HTTP/WebSocket server. It is based on the standalone version of ASIO and is targeted primarily for the asynchronous processing of HTTP requests. Since v.0.4.1 Boost::ASIO (1.66 or higher) is also supported. Consider the task of writing a C++ application that must support some REST API, RESTinio represents our solution for that task. Server runs on the main thread, and responds to all requests with a hello-world message. Of course, you've got access to the structure of a given HTTP request, so you can apply complex logic for handling requests. Async request handling. Cannot get the response data immediately? That's ok, store the request handle somewhere and/or pass it to another execution context and get back to it when the data is ready.

Features

  • HTTP pipelining. Works well with async request handling
  • It might increase your server throughput dramatically
  • Timeout control. RESTinio can take care of bad connection that are like: send "GET /" and then just stuck
  • Response builders. Need chunked-encoded body - then RESTinio has a special response builder for you (obviously it is not the only builder)
  • ExpressJS-like request routing
  • An experimental typesafe request router that allows avoiding problems of ExpressJS-like router with help of static checks from C++ compiler

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow RESTinio

RESTinio Web Site

Other Useful Business Software
AI Powered Global HCM for the Evolving World of Work Icon
AI Powered Global HCM for the Evolving World of Work

For Start-ups, SME's, Large Enterprise

Darwinbox is a new-age & disruptive mobile-first, cloud-based HRMS platform built for the large enterprises to attract, engage and nurture their most critical resource - talent. It is an end-to-end integrated HR system that aids in streamlining activities across the employee lifecycle (Hire to Retire). Our powerful enterprise product features are built with a clear focus on intuitiveness and scalability, with standards of best in class consumer apps. Darwinbox’s motto is to engage, empower, and inspire employees on one side in addition to automating and simplifying all HR processes for the enterprise on the other. Over 350+ leading enterprises with 850k users manage their entire employee lifecycle on this unified platform.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RESTinio!

Additional Project Details

Programming Language

C++

Related Categories

C++ HTTP Servers, C++ HTTP Clients, C++ WebSocket Servers

Registered

2023-05-16