帮助中心帮助中心
类: matlab.net.http.StatusClass 命名空间: matlab.net.http
以文本短语形式返回 StatusClass 名称
meaning = getReasonPhrase(class)
示例
meaning = getReasonPhrase(class) 返回英语语言字符串形式的状态类名称,单词之间用空格隔开。
class
全部展开
matlab.net.http.StatusClass
状态类,指定为 matlab.net.http.StatusClass 对象。
向 mathworks.com 发送消息并显示状态代码类别。
mathworks.com
uri = matlab.net.URI('https://www.mathworks.com'); req = matlab.net.http.RequestMessage; resp = send(req, uri); sc = getClass(resp.StatusCode); disp(getReasonPhrase(sc))
Successful
在 R2016b 中推出
matlab.net.http.StatusLine | matlab.net.http.ResponseMessage
matlab.net.http.StatusLine
matlab.net.http.ResponseMessage
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office