matlab.net.http.io.FormProvider Class
Namespace: matlab.net.http.io
Superclasses: matlab.net.http.io.StringProvider
ContentProvider that sends form data
Description
This provider creates data suitable for a request message whose Content-Type is
"application/x-www-form-urlencoded"
, as required by many servers that
expect users to fill in HTML forms.
Using this provider in the Body
of a RequestMessage
is
optional, because you can insert a QueryParameter
vector directly into the
Body
of a RequestMessage
to get the same conversion done
automatically.
Subclass authors can create a FormProvider
subclass to create the data
dynamically only when the message is ready to be transmitted, or during transmission.
The matlab.net.http.io.FormProvider
class is a handle
class.
Creation
Description
provider = FormProvider(
constructs
a provider that sends a vector of queryparams
)QueryParameter
objects specified as
queryparams
. This constructor sets the
Parameters
property to the value of
queryparams
.
provider = FormProvider(
sends an
arbitrary list of arguments to the arg1,...,argn
)matlab.net.QueryParameter
constructor to
obtain a QueryParameter
vector. This syntax a shortcut for:
FormProvider(QueryParameter(arg1,...,argn))
Input Arguments
Properties
Methods
More About
Version History
Introduced in R2018a