matlab.net.http.LogRecord类
Package:matlab.net.http
HTTP history log record
Description
A vector ofLogRecord
对象represents a history of request-response message pairs exchanged between client and server during an HTTP operation, such asRequestMessage.send
. Thesend
method returns history as an output argument. When an error occurs, theHTTPException
object contains aHistory
property.
Use theLogRecord
class for debugging.
Properties
URI
—URI of request
matlab.net.URI
URI of the request, specified as amatlab.net.URI
object.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
Request
—Request message
matlab.net.http.RequestMessage
object
Request message, specified as amatlab.net.http.RequestMessage
object.Request
contains a value if MATLAB®attempted to send the header of the request message, even if an exception occurs in the process of sending the payload. If an exception occurs, then theException
property contains theMException
.
TheRequest.Body
property contains the body of the request message, if any. TheRequest.Body.Payload
property is set only if you specify theSavePayload
property in anHTTPOptions
object.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
RequestTime
—Start and end times of request message
pair ofdatetime
对象
Start and end times of a request message, specified as a pair ofdatetime
对象.RequestTime
contains a value only if theRequest
property is set.
TheRequestTime
值是一个近似的时候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
property contains theMException
.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
Data Types:datetime
Response
—Response message
matlab.net.http.ResponseMessage
object
Response message, specified as amatlab.net.http.ResponseMessage
object.Response
contains a value only if the 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
might be empty. If an exception occurs, then theException
property contains theMException
object.
TheResponse.Body
property is set if you specify theSavePayload
property in anHTTPOptions
object and the response has a body. IfResponse.Body
is set, then theResponse.Body.Payload
property is also set.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
ResponseTime
—Start and end times of response message
pair ofdatetime
对象
Start and end times of the response message, specified as a pair ofdatetime
对象.ResponseTime
contains a value only if theResponse
property is set.
TheResponseTime
值是一个近似的时候first and last bytes of the response message are received. If an exception occurs during receipt, then the end time is the time of the exception, and theException
property contains theMException
object.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
Data Types:datetime
Disposition
—Disposition of exchange
matlab.net.http.Disposition
enumeration
Disposition of the exchange, specified as amatlab.net.http.Disposition
enumeration, indicating the result of the exchange. If theDisposition
value isDone
, then theException
property is empty and all fields of theLogRecord
contain their final values.
Some values ofDisposition
imply that an exception was saved in theException
property. If an exception occurs, theResponse
orRequest
properties might not be set. When these values are set depends on whether the exception occurs before or during the transmission of the headers or the payload.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
Exception
—Exception
MException
Exception, specified as anMException
object that occurred during processing of the exchange. If an error occurred during the transmission, receipt, or processing of the response, this property is theMException
containing the exception. The value of theDisposition
property determines whether this property is set.
Attributes:
GetAccess |
public
|
SetAccess |
public
|
Methods
Public Methods
show |
Display or return human-readable version of vector of LogRecords |
Version History
MATLAB Command
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.
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)