Package: matlab.net.http
HTTP protocol version
If you use 'HTTP/1.1'
, you do not need to
create a protocol version. To use a different protocol, use the ProtocolVersion
class
to create the protocol version and add it to the request line of a
request message.
The server returns a ProtocolVersion
object in
the status line of a response message.
obj = matlab.net.http.ProtocolVersion(name,major,minor)
creates
the protocol version with the specified properties. This constructor enforces proper
syntax of the parameters. For test purposes, create a ProtocolVersion
object
in a request message. Then use the isequal
method
to compare this value with the value returned by the server in the
response message.
obj = matlab.net.http.ProtocolVersion(
creates
the version from str
)str
.
These methods implement the equivalent MATLAB® functionality for this class.
isequal | Uses case-insensitive compare. |
char | Protocol version as character vector |
string | Protocol version as string |
Sealed | true |
matlab.net.http.RequestLine
| matlab.net.http.RequestMessage
| matlab.net.http.ResponseMessage
| matlab.net.http.StatusLine