matlab.rest_function_service.client.MWHttpClient Class
R2026bDescription
The Python® class matlab.rest_function_service.client.MWHttpClient creates an
object for calling MATLAB® functions in a REST function service. Use this object in your Python client applications to pass inputs to MATLAB functions using native Python data types. Data is passed synchronously using the HTTPS request-response
model.
Creation
Before creating a matlab.rest_function_service.client.MWHttpClient object,
follow these steps to make the class accessible from your Python application:
Install the Python Client for MATLAB REST Function Service package from the Python Package Index (PyPI). At the operating system command line, run this command.
python -m pip install matlab-restfcnservice-clientIn your Python application, import the
matlabpackage andMWHttpClientclass from Python Client for REST Function Service.import matlab from matlab.rest_function_service.client import MWHttpClient
Then create an object of the
matlab.rest_function_service.client.MWHttpClient class using one of the
syntaxes shown below.
Description
Input Arguments
Methods
Examples
More About
Version History
Introduced in R2026b