ok2c commented on code in PR #741:
URL:
https://github.com/apache/httpcomponents-client/pull/741#discussion_r2442460029
##########
httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java:
##########
@@ -699,6 +700,27 @@ public final H2AsyncClientBuilder
evictIdleConnections(final TimeValue maxIdleTi
return this;
}
+ /**
+ * Enables emission of the {@code Priority} request header for HTTP/2
requests.
+ * <p>
+ * When enabled, {@link
org.apache.hc.client5.http.protocol.H2RequestPriority} is added as the
+ * last request interceptor. The header is omitted when the effective
value equals the RFC
+ * defaults ({@code u=3, i=false}). Per-request values can be supplied via
+ * {@code HttpCoreContext} attribute
+ * {@link
org.apache.hc.client5.http.protocol.H2RequestPriority#ATTR_HTTP2_PRIORITY_VALUE}.
+ * </p>
+ * <p><b>Experimental:</b> API and behavior may change.</p>
+ *
+ * @return this builder
+ * @see org.apache.hc.client5.http.protocol.H2RequestPriority
+ * @since 5.6
+ */
Review Comment:
@arturobernalg Now that PriorityValue has been added to RequestConfig i
think this interceptor should be added by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]