Restless is a comprehensive and consistent programming model for building applications that require seamless and secure communication over HTTP, with the ability to model a range of business processes and production environments.
#include <memory>
#include <system_error>
#include <corvusoft/restless/session.hpp>
#include <corvusoft/restless/request.hpp>
#include <corvusoft/restless/response.hpp>
using std::shared_ptr;
using std::error_code;
using std::make_shared;
using corvusoft::restless::Session;
using corvusoft::restless::Request;
using corvusoft::restless::Response;
auto session = make_shared< Session >( );
session->open( "www.corvusoft.co.uk", 80, [ ]( auto session, auto status )
{
auto request = make_shared< Request >( );
request->set_version( 1.1 );
request->set_path( "/" );
request->set_method( "GET" );
request->set_protocol( "HTTP" );
session->send( request, [ ] ( auto session, auto response, auto status )
{
//Process response...
return error_code( );
} );
return error_code( );
} );
© 2013-2018 Corvusoft Limited, United Kingdom. All rights reserved.
The Restless framework is dual licensed; See LICENSE for full details.
Please contact [email protected], for support and licensing options including bespoke software development, testing, design consultation, training, mentoring and code review.
git clone --recursive https://github.com/corvusoft/restless.git
./restless/build/all.sh
You will now find all required components installed in the distribution folder.
Please submit all enhancements, proposals, and defects via the issue tracker; Alternatively ask a question on StackOverflow tagged #restless.
This codebase is intended to be as self documenting as possible. We have supplied many examples and test suites to help aid developers.
We are currently working on textual API documentation, however it's subject to erratic and frequent alteration; you've been warned.
Resource | Requirement |
---|---|
Compiler | C++14 compliant or above |
Method | Description |
---|---|
Tweet us your questions & feature requests. | |
[email protected] | Support related queries. |
[email protected] | Sale related queries. |