REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
handler.h
Go to the documentation of this file.
32 constexpr int error(int internal_code) { return internal_code == success ? success : result_prefix + internal_code; }
49 virtual int handle(JsonObjectConst msg_in, JsonObject &msg_out, net::auth::AuthentificationContext& user_context) {
A MessageHandler is a functor/closure like event handler.
Definition handler.h:21
int result_prefix
Following the HRESULT idiom, this number is an assigned prefix by the registry.
Definition handler.h:31
static constexpr int not_implemented
Definition handler.h:23
virtual int handle(JsonObjectConst msg_in, utils::StreamingJson &msg_out)
Handler for streaming responses.
Definition handler.h:56
virtual int handle(JsonObjectConst msg_in, JsonObject &msg_out)
The actual handler method gets a message and returns a message next to the status code.
Definition handler.h:42
virtual int handle(JsonObjectConst msg_in, JsonObject &msg_out, net::auth::AuthentificationContext &user_context)
A handler variant that allows access to the authentification context of the client.
Definition handler.h:49
The Streaming JSON API provides a way of constructing (writing) JSON messages without RAM overhead.
Definition streaming_json.h:44
Definition carrier.h:12
Definition handler.h:10