Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
httptransport.cpp File Reference

MCP Streamable HTTP transport on a bare QTcpServer. More...

#include "server_p.h"
#include <QtCore/QElapsedTimer>
#include <QtCore/QJsonDocument>
#include <QtCore/QUrl>
#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include <cstddef>

Classes

struct  Sonde::HttpTransport::Connection
 Per-connection parser state. More...

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

QByteArray Sonde::anonymous_namespace{httptransport.cpp}::postBody (const QList< QJsonObject > &responses, bool batch)
 The body answering a POST: the single response, or an array of the batch's responses.

Variables

static constexpr int Sonde::kRefusedLingerMs = 200
 How long a refused connection stays open after its 503, so the client can read it.

Detailed Description

MCP Streamable HTTP transport on a bare QTcpServer.