MATLAB 帮助中心
类: matlab.net.http.LogRecord 命名空间: matlab.net.http
显示或返回 LogRecords 向量的易读版本
show(records)
show(records,maxlength)
strs = show(___)
show(records) 显示 records 数组的全部内容。
records
show(records,maxlength) 显示消息主体的 maxlength 字符数。如果消息主体包含的字符数少于 maxlength,此方法将显示整个消息主体。
maxlength
示例
strs = show(___) 以字符串形式返回输出,而不是直接显示输出,且可包含上述语法中的任何输入参量。strs 为 records 中的每个 LogRecord 对象包含一个字符串。
strs
LogRecord
全部展开
matlab.net.http.LogRecord
日志记录,指定为 matlab.net.http.LogRecord 对象的数组。
要转换的字节数,指定为整数。
mathworks.com
import matlab.net.* import matlab.net.http.* import matlab.net.http.field.* r = RequestMessage; uri = URI('https://www.mathworks.com') [resp,~,hist] = r.send(uri); show(hist(end),100)
REQUEST 1 to https://www.mathworks.com/?requestedDomain=www.mathworks.com at 29-Apr-2016 09:30:35 - 29-Apr-2016 09:30:35 (0.132 sec): Done GET /?requestedDomain=www.mathworks.com HTTP/1.1 Cookie: Bjava-apache-all-ah=2831032236.0.0000; X_MW_DOMAIN=www.mathworks.com; JSESSIONID=236bd3c6939d903ca917331c1b60 User-Agent: MATLAB/9.0.0.379006 (R2016b) Date: Fri, 29 Apr 2016 13:30:33 GMT Connection: Close Host: www.mathworks.com RESPONSE 1 at 29-Apr-2016 09:30:35 - 29-Apr-2016 09:30:36 (0.141 sec) HTTP/1.1 200 OK Date: Fri, 29 Apr 2016 13:30:35 GMT Server: MathworksServer_08 X-Powered-By: Servlet/3.0 JSP/2.2 (MathworksServer_08 Java/Oracle Corporation/1.7) Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: Sun, 26 Apr 2015 11:56:16 GMT Content-Type: text/html;charset=utf-8 Via: 1.1 www.mathworks.com Vary: Accept-Encoding Transfer-Encoding: chunked Connection: close <!DOCTYPE HTML> <html> <head> <title>MathWorks - Makers of MATLAB and Simulink</title> <meta char << 46590 total characters of text/html UTF-8 data >>
显示的信息取决于您的系统。
在 R2016b 中推出
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处