Struct ServiceRequest

Struct Documentation

struct ServiceRequest

A service request.

This represents an individual client request. The service implementation is responsible for parsing the request and sending a response in a timely manner.

Public Functions

inline std::string_view payloadStr() const noexcept

Returns a string view of the payload.

Public Members

std::string service_name

Service name.

uint32_t client_id

Locally unique client ID.

uint32_t call_id

Call ID, unique to the client.

std::string encoding

Message encoding.

std::vector<std::byte> payload

Request message data.