主要内容

matlab.net.http.Logrocord类

包裹:matlab.net.http

HTTP历史记录记录

描述

一个向量LogRecord对象表示在HTTP操作期间客户端和服务器之间交换的请求响应消息对的历史记录,例如要求Message.send。这发送方法将历史记录作为输出参数返回。发生错误时,httpexception对象包含一个历史财产。

使用LogRecord调试课程。

类属性

密封
真的

有关类属性的信息,请参阅类属性

特性

展开全部

请求的URI,指定为matlab.net.uri目的。

属性:

GetAccess
public
setAccess
public

请求消息, specified as amatlab.net.http.RequestMessage目的。要求如果MATLAB,则包含一个值®即使在发送有效载荷的过程中发生例外,也尝试发送请求消息的标题。如果发生例外,那么Exception属性包含mexception

请求属性包含请求消息的正文(如果有)。这request.body.payload仅当您指定SavePayload属性httpoptions目的。

属性:

GetAccess
public
setAccess
public

请求消息的开始和结束时间,指定为一对约会时间对象。请求时间仅在要求设置属性。

请求时间值是一个近似的时候first and last bytes, including the payload, of a request message were sent. If an exception occurs during transmission, then the end time is the time of the exception, and theException属性包含mexception

属性:

GetAccess
public
setAccess
public

数据类型:约会时间

响应消息,指定为matlab.net.http.Responsemessage目的。Response仅在complete header of the response is received successfully, even if an exception occurs receiving the payload. If an exception occurs while trying to send the request or during receipt of the header, thenResponse可能是空的。如果发生例外,那么Exception属性包含mexception目的。

Response.Body如果您指定SavePayload属性httpoptions对象和响应具有身体。如果Response.Body设置,然后响应body.payload还设置了属性。

属性:

GetAccess
public
setAccess
public

响应消息的开始和结束时间,指定为一对约会时间对象。响应时间仅在Response设置属性。

响应时间值是接收响应消息的第一个和最后一个字节的时间的近似值。如果在收据期间发生异常,则结束时间是例外的时间,然后Exception属性包含mexception目的。

属性:

GetAccess
public
setAccess
public

数据类型:约会时间

交换的处置,指定为matlab.net.http.disposition枚举, indicating the result of the exchange. If the处置值是完毕,然后Exception属性是空的,LogRecord包含其最终值。

一些值处置暗示一个例外是保存在Exception财产。如果发生例外,Responseor要求可能无法设置属性。设置这些值时,取决于异常是在标题传输之前还是在有效载荷传输之前还是期间发生。

属性:

GetAccess
public
setAccess
public

例外,指定为mexception交换过程中发生的对象。如果在响应的传输,收据或处理过程中发生错误,则此属性是mexception包含例外。价值处置属性确定是否设置了此属性。

属性:

GetAccess
public
setAccess
public

方法

展开全部

版本历史记录

在R2016b中引入