Restbed is a C++ framework for building server-side apps that need HTTP, WebSockets, TLS, and related protocols with an asynchronous architecture.
Overview
Restbed is an enterprise-oriented C++ framework for server-side applications that rely on HTTP communication. It targets modeling business processes behind secure, scalable network services and fits mobile, tablet, desktop, and embedded deployments where HTTP is embedded in a larger product.
Capabilities include WebSockets, server-sent events, comet-style long polling, SSL and TLS, HTTP pipelining, path and query parameters, custom HTTP methods, compression and encoding, IPv4 and IPv6, asynchronous single- or multi-threaded handling, typed conversions for path query and headers, service- and resource-level authentication and error handling, separate bind addresses for HTTP and HTTPS, and signal handling.
The stack is built with GNU Autotools, expects a C++23 toolchain, and installs pkg-config metadata for consumers. Configure flags can disable SSL, enable Unix domain sockets, or adjust static and shared library output. Documentation covers architecture and API with examples and tests in the tree.
Restbed suits teams implementing RESTful and related protocols directly in C++ rather than fronting an external web server, with optional commercial support from Corvusoft.
Key features
- WebSockets and server-sent events
- SSL/TLS and HTTP pipelining
- Path and query parameter parsing
- Service and resource authentication
- Asynchronous multi-threaded model
- Custom HTTP methods and compression
- IPv4 and IPv6 support
- Bind HTTP and HTTPS separately
Use cases
- Embedded HTTP APIs in C++ products
- Real-time push over SSE or WebSockets
- REST services with TLS termination