@Experimental @Contract(threading=IMMUTABLE) public final class H2RequestPriority extends Object implements HttpRequestInterceptor
Priority request header to HTTP/2+ requests when a per-request
priority is configured.
The priority is taken from RequestConfig.getH2Priority(). If a Priority
header is already present on the request, it is left unchanged. If formatting the
configured value yields an empty string (e.g., because it encodes protocol defaults),
the header is not added.
| Modifier and Type | Field and Description |
|---|---|
static H2RequestPriority |
INSTANCE
Singleton instance.
|
| Constructor and Description |
|---|
H2RequestPriority() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpRequest request,
EntityDetails entity,
HttpContext context) |
public static final H2RequestPriority INSTANCE
public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException
process in interface HttpRequestInterceptorHttpExceptionIOExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.