Skip to content

Commit b4761f8

Browse files
committed
Updated Metadata subclass
1 parent 81945e1 commit b4761f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

azd/src/main/java/org/azd/utils/RestClient.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ static OptionalLong retryAfterInterval() {
5050
*/
5151
public static final class Metadata {
5252
public static String getResponseHeader(String value) {
53-
return RestClient.headersFromLastRequest.firstValue(value).orElse("");
53+
return RestClient.headersFromLastRequest.firstValue(value).orElse(null);
54+
}
55+
56+
public static HttpHeaders getResponseHeaders() {
57+
return RestClient.headersFromLastRequest;
58+
}
59+
60+
public OptionalLong getRetryAfterInterval() {
61+
return RestClient.retryAfterInterval();
5462
}
5563
}
5664

0 commit comments

Comments
 (0)