www.gusucode.com > external 工具箱matlab源码程序 > external/interfaces/webservices/http/+matlab/+net/+http/Disposition.m
classdef Disposition % Disposition Enumeration of results in an HTTP LogRecord % % Disposition properties: % % Done - a request and response were successfully sent and received % TransmissionError - an error occurred sending or receiving the message % ConversionError - an error occurred converting the response payload % % See also LogRecord % Copyright 2015 The MathWorks, Inc. enumeration % Done - a request and response were sucessfully send and received. % This indicates the log record contains both the RequestMessage and % ResponseMessage. It does not imply anything about the StatusCode in the % response. % % See also LogRecord, RequestMessage, ResponseMessage, StatusCode Done % TransmissionError - an error occurred sending or receiving the message. % LogRecord.Exception contains the exception that occurred. % % If it occurred sending the request, LogRecord.Request contains the % completed RequestMessage and LogRecord.Response is empty. % % If it occurred receiving the response, LogRecord.Response may be empty if % complete headers could not be received. If headers were received but the % payload could not be read, the ResponseMessage will contain only the % headers. % % See also LogRecord, RequestMessage, ResponseMessage TransmissionError % ConversionError - an error occurred converting the data of the response. % The request was properly received (StatusCode is likely OK), but there % was an error trying to convert the payload of the response. This is an % indication that MessageBody.Payload of LogRecord.Response contains the % raw payload (even if HTTPOptions.SavePayload was not requested) and % MessageBody.Data is empty. The LogRecord.Exception contains the % exception. % % See also StatusCode, MessageBody, LogRecord, % matlab.net.http.HTTPOptions.SavePayload ConversionError end end