Main Content

matlab.production_server.client.MWHttpClient

Package: matlab.production_server

Python object encapsulating a connection to a MATLAB Production Server instance

Description

The matlab.production_server.client.MWHttpClient class creates a connection object that encapsulates the connection between the client and a MATLAB® Production Server™ instance. Once the connection is created, you can dynamically call all MATLAB functions hosted on the server instance.

Construction

my_client = MWHttpClient(url,[timeout_ms=timeout_ms])

Input Arguments

expand all

URL of the server instance to which the client connects, specified as a string. This server instance hosts the MATLAB functions which the client can evaluate.

Number of milliseconds the client waits for a response from the server instance, specified as an integer.

Methods

Exceptions

HTTPException

Raised if there is a problem communicating with the server instance.

MATLABException

Raised if a function call fails to execute.

TypeError

Raised if the specified timeout value is not a positive int or long.

ValueError

Raised if the specified timeout value is less than zero.