Package io.servicetalk.http.api
Class HttpRequestMetaDataFactory
java.lang.Object
io.servicetalk.http.api.HttpRequestMetaDataFactory
A static factory class for
HttpRequestMetaData
objects.
This is typically only used by HTTP decoders.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRequestMetaData
newRequestMetaData
(HttpProtocolVersion version, HttpRequestMethod method, String requestTarget, HttpHeaders headers) Create a new instance.
-
Method Details
-
newRequestMetaData
public static HttpRequestMetaData newRequestMetaData(HttpProtocolVersion version, HttpRequestMethod method, String requestTarget, HttpHeaders headers) Create a new instance.- Parameters:
version
- theHttpProtocolVersion
of the request.method
- theHttpRequestMethod
of the request.requestTarget
- the request-target of the request.headers
- theHttpHeaders
to use for the request.- Returns:
- a new
HttpRequestMetaData
.
-