Skip to content

Commit 91cc29c

Browse files
stepanchegslandelle
authored andcommitted
Implement HttpResponseStatus.toString (AsyncHttpClient#1293)
1 parent 1053ebb commit 91cc29c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

client/src/main/java/org/asynchttpclient/HttpResponseStatus.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,12 @@ public final Uri getUri() {
9999
* if asynchronous provider is unable to provide the local address
100100
*/
101101
public abstract SocketAddress getLocalAddress();
102+
103+
/**
104+
* Code followed by text.
105+
*/
106+
@Override
107+
public String toString() {
108+
return getStatusCode() + " " + getStatusText();
109+
}
102110
}

0 commit comments

Comments
 (0)