show
类: matlab.net.http.LogRecord
命名空间: matlab.net.http
显示或返回 LogRecords 向量的易读版本
说明
show(
显示 records
)records
数组的全部内容。
strs = show(___)
以字符串形式返回输出,而不是直接显示输出,且可包含上述语法中的任何输入参量。strs
为 records
中的每个 LogRecord
对象包含一个字符串。
输入参数
records
— 日志记录
matlab.net.http.LogRecord
对象数组
日志记录,指定为 matlab.net.http.LogRecord
对象的数组。
maxlength
— 字节数
整数
要转换的字节数,指定为整数。
示例
显示发送给 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 中推出
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)