Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Construction

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 character vector.

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?