matlab.net.http.StatusLine class

Package: 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.

Properties

expand all

HTTP version, specified as a matlab.net.http.ProtocolVersion object or a string acceptable to its constructor.

Example: 'HTTP/1.1'

Attributes:

Dependenttrue

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:

Dependenttrue

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:

Dependenttrue

Methods

These methods implement the equivalent MATLAB® functionality for this class.

char

Status line as character vector

string

Status line as string

Introduced in R2016b

Was this topic helpful?