public final RequestConfig getRequestConfigOrDefault() {
        final RequestConfig requestConfig = getRequestConfig();
        return requestConfig != null ? requestConfig : RequestConfig.DEFAULT;
    }
Returns {@link RequestConfig} set in the context or {@link RequestConfig#DEFAULT}
if not explicitly set in the context.

@since 5.4
httpclient5/src/main/java/org/apache/hc/client5/http/protocol/HttpClientContext.java