Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{test_http.cpp}::HttpTest Class Reference

Fixture with a server on an ephemeral HTTP port and an "echo" tool. More...

Inheritance diagram for anonymous_namespace{test_http.cpp}::HttpTest:

Protected Member Functions

void SetUp () override
 Starts the HTTP listener and registers tools.

Static Protected Member Functions

static QByteArray rpc (int id, const QString &method, const QJsonObject &params={ })
 A JSON-RPC request body.

Protected Attributes

Server server
 Server under test.
quint16 port = 0
 HTTP port.

Detailed Description

Fixture with a server on an ephemeral HTTP port and an "echo" tool.


The documentation for this class was generated from the following file:
  • tests/core/test_http.cpp