public class StatusLine extends Object
HTTP status line returned from an HTTP server.
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpVersion()
Get the HTTP version.
|
String |
getReasonPhrase()
Get the reason phrase.
|
int |
getStatusCode()
Get the status code.
|
String |
toString()
Get the string representation of this instance, which is
equal to the raw status line.
|
public String getHttpVersion()
Get the HTTP version.
"HTTP/1.1".public int getStatusCode()
Get the status code.
404.public String getReasonPhrase()
Get the reason phrase.
"Not Found".Copyright © 2021. All Rights Reserved.