Class ModelControlHttpContext

Class Documentation

class ModelControlHttpContext

ModelControlHttpContext is the HTTP instantiation of ModelControlContext.

Public Static Functions

static Error Create(std::unique_ptr<ModelControlContext> *ctx, const std::string &server_url, const std::map<std::string, std::string> &headers, bool verbose = false)

Create context that controls models to be loaded on a server and to be unloaded from a server using HTTP protocol.


Error object indicating success or failure.

  • ctx: Returns the new ModelControlContext object.

  • server_url: The inference server name and port.

  • headers: Map of HTTP headers to use with the control request. The map key/value indicates the header name/value.

  • verbose: If true generate verbose output when contacting the inference server.