Main Content

show

Class: matlab.net.http.LogRecord
Namespace: matlab.net.http

Display or return human-readable version of vector of LogRecords

Description

show(records) displays the entire contents of the records array.

show(records,maxlength) displays maxlength characters of the message bodies. If a message body contains fewer than maxlength characters, then the method displays the entire message body.

example

strs = show(___) returns the output as a string instead of displaying it and can include any of the input arguments in previous syntaxes. strs contains one string for each LogRecord object in records.

Input Arguments

expand all

Log records, specified as an array of matlab.net.http.LogRecord objects.

Number of bytes to convert, specified as an integer.

Examples

expand all

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 >>

The information displayed depends on your system.

Version History

Introduced in R2016b