Skip to content

Test asio#2

Merged
riccardodebenedictis merged 336 commits intomainfrom
test_asio
Nov 15, 2025
Merged

Test asio#2
riccardodebenedictis merged 336 commits intomainfrom
test_asio

Conversation

@riccardodebenedictis
Copy link
Contributor

No description provided.

…nd add utility functions for JSON and chunked transfer encoding checks
…rieval, and update route handling to utilize structured bindings for improved readability.
…runcation; initialize SSL socket with hostname.
…mory management and ensure proper connection handling.
…ode across client and server implementations
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR represents a major refactoring of the ratioNet library, migrating from Boost.Beast to Asio for networking. The changes include a complete rewrite of server and client architecture, introduction of middleware support, WebSocket session management, and comprehensive test coverage.

Key Changes:

  • Migration from Boost.Beast to standalone Asio library
  • Complete rewrite of server/client session management with async and sync variants
  • Introduction of middleware system (CORS, logging)
  • Unified request/response architecture with type-safe verb enums

Reviewed Changes

Copilot reviewed 44 out of 45 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/test_server.cpp Updated test to use new server API with restructured route handlers
tests/test_client.cpp Replaced Boost.Beast client tests with Asio-based client and async client tests
tests/test_ws.cpp Removed legacy WebSocket client test file
tests/CMakeLists.txt Updated build configuration to use new test structure
src/server/* New server implementation with session management and WebSocket support
src/client/* New client implementation with sync and async variants
src/middlewares/* New middleware system for CORS and logging
include/common/* New common types (verb, status_code, message, request, response, etc.)
include/server/* New server headers with session and WebSocket session interfaces
include/client/* New client headers with session-based architecture
include/middlewares/* Middleware base class and implementations
CMakeLists.txt Updated build system to fetch Asio and configure SSL support
README.md Updated documentation to reflect new API
Comments suppressed due to low confidence (1)

tests/test_client.cpp:1

  • SERVER_HOST and SERVER_PORT are undefined macros/constants. These should either be defined in a header or replaced with literal values (e.g., "localhost", 8080).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@riccardodebenedictis riccardodebenedictis merged commit b1c7e87 into main Nov 15, 2025
28 checks passed
@riccardodebenedictis riccardodebenedictis deleted the test_asio branch November 15, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant