matlab.net.http.StatusLine - First line of HTTP response message - MATLAB (original) (raw)
Main Content
Namespace: matlab.net.http
Superclasses: matlab.net.http.StartLine
First line of HTTP response message
Description
The server inserts a StatusLine
object into every HTTP response message. For information about a status line, see RFC 7230 Status Line, section 3.1.2 on the RFC Editor website.
Creation
obj = StatusLine(protocolVersion,statusCode,reasonPhrase)
creates a status line with the specified properties. Use constructors for testing.
obj = StatusLine([str](#mw%5F5f4c63a4-4eba-4e8e-9315-7f9b3eb450aa))
creates a status line by parsing str
.
Input Arguments
Status line, specified as a string or a character vector.
Properties
Status code, specified as a matlab.net.http.StatusCode enumeration, string, or integer. The value is a StatusCode
object if the server returns one of its enumeration values. If the server returns a number, then the value is an integer.
Attributes:
GetAccess | public |
---|---|
SetAccess | public |
Dependent | true |
Reason phrase from server, specified as a string. ReasonPhrase
is empty if the server does not provide a reason. This value is not necessarily the same as the value returned by the StatusCode.getReasonPhrase
method.
Attributes:
GetAccess | public |
---|---|
SetAccess | public |
Dependent | true |
Methods
These methods specialize standard MATLABĀ® operators and functions for objects in this class.
string | Status line as string |
---|---|
char | Status line as character vector |
Version History
Introduced in R2016b