Main Content

matlab.net.http.StatusLine Class

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.

Class Attributes

Sealed
true

For information on class attributes, see Class Attributes.

Creation

obj = StatusLine(protocolVersion,statusCode,reasonPhrase) creates a status line with the specified properties. Use constructors for testing.

obj = StatusLine(str) creates a status line by parsing str.

Input Arguments

expand all

Status line, specified as a string or a character vector.

Properties

expand all

Protocol version, specified as a matlab.net.http.ProtocolVersion object.

Attributes:

GetAccess
public
SetAccess
public
Dependent
true

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

expand all

Version History

Introduced in R2016b