|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
Calls made to the running auto-tuning process. More...
#include <chrono>#include <expected>#include <string>#include <utility>#include "net/http_client.h"Go to the source code of this file.
Classes | |
| class | mm::auto_tuning::Client |
| Talks to one running auto-tuning process. More... | |
Namespaces | |
| namespace | mm |
| namespace | mm::auto_tuning |
Calls made to the running auto-tuning process.
The auto-tuning program takes one request shape for every function it offers: a JSON object with a run naming the function and a data holding its inputs. So this class has one call, and the function names are data rather than methods.
A refused input arrives as a success. The program answers a rejected input with HTTP 200 and an error property in the body, and reserves 4xx and 5xx for a malformed request, an unknown function, and a routine that threw. A caller therefore tests for error in the body, not only the status. Nothing is unwrapped here, because the endpoint that forwards this has to pass both halves through untouched.