Code Monkey home page Code Monkey logo

foxy's Introduction

Foxy Build Status

Low-level HTTP session primitives for Beast/Asio + URL parsing and pct-coding

Examples and Reference

Requirements

  • C++14 and above
  • CMake 3.13+
  • Boost 1.71+
  • OpenSSL
  • Catch2 (for testing)

vcpkg is recommended for easy dependency management.

Supported Compilers

GCC 7+, Clang 6+, MSVC 2019

Why Foxy?

  • You're a Beast user who wants a reliable HTTP session vocabulary type
  • You want a client session abstraction that automatically handles DNS, TLS and certificate verification
  • You want a server session abstraction that can detect TLS handshakes and perform them
  • You need a URL parser
  • You need percent encoding and decoding
  • You need a TLS forward proxy
  • You want a convenient HTTP(S) server abstraction that handles connection setup + teardown

Description

Foxy is a C++14 library that aims to make idiomatic usage of Boost.Beast and Boost.Asio easier.

Foxy offers users low-level HTTP session primitives. These come in 3 forms: session, client_session and server_session.

The session class is direction-agnostic while the client_session and server_session offer additional functionality that implementors of clients and servers may find useful.

The utility of the session abstractions is that they abstract away the typical boilerplate required for using Boost.Beast. Sessions encapsulate sockets, buffers and timers which are all used during stream operations. They also reduce the API surface and enable implementors to focus solely on using Beast's message class and Asio's executor model.

Foxy also touts a best-in-class URL parser along with a set of URI parsing combinators adopted from RFC 3996. In addition, there are routines for percent encoding and dedoding URL components.

Foxy is built on top of Boost.Beast and Boost.Asio along with Boost.Spirit's library, X3. Foxy does not treat these libraries as implementation details but exposes them directly. To this end, Foxy is as powerful as plain Beast/Asio are and anything one can do in Beast, one can do using Foxy.

Foxy aims to be competitive with the HTTP libraries offered by both Node.js and Go.

While these languages are significantly higher-level than C++ is, their standard HTTP libraries are low-level from an abstract perspective. The success of these languages and their libraries has shown that the modern web development is favoring an ever-lower set of HTTP APIs.

foxy's People

Contributors

cmazakas avatar olipro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.