Main Content

matlab.net.http.RequestMethod Class

Namespace: matlab.net.http

HTTP request method

Description

The RequestMethod enumeration class provides identifiers for request methods. Use these values for the Method property in a request message. The methods supported are those listed in the IANA Hypertext Transfer Protocol (HTTP) Method Registry as of April 14, 2017.

To see a list of all the RequestMethod members, type:

enumeration matlab.net.http.RequestMethod

Examples

collapse all

r = matlab.net.http.RequestMessage;
uri = 'https://www.mathworks.com';
r = complete(r,uri);
reqmethod = r.Method
reqmethod = 
  RequestMethod enumeration

    GET

Version History

Introduced in R2016b