Main Content

show

클래스: matlab.net.http.LogRecord
네임스페이스: matlab.net.http

사람이 읽을 수 있는 형식으로 LogRecords 벡터를 표시하거나 반환

설명

show(records)records 배열의 전체 내용을 표시합니다.

예제

show(records,maxlength)는 메시지 본문의 maxlength개 문자를 표시합니다. 메시지 본문에 maxlength개 미만의 문자가 포함된 경우 이 메서드는 전체 메시지 본문을 표시합니다.

strs = show(___)는 출력값을 화면에 표시하는 대신 string형으로 반환하며, 위에 열거한 구문에 있는 어떤 입력 인수도 포함할 수 있습니다. strsrecords에 포함된 각 LogRecord 객체별로 하나의 string형을 포함합니다.

입력 인수

모두 확장

로그 레코드로, matlab.net.http.LogRecord 객체로 구성된 배열로 지정됩니다.

변환할 바이트 수로, 정수로 지정됩니다.

예제

모두 확장

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에 개발됨