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 HttpRequestMetaDatanewRequestMetaData(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- theHttpProtocolVersionof the request.method- theHttpRequestMethodof the request.requestTarget- the request-target of the request.headers- theHttpHeadersto use for the request.- Returns:
- a new
HttpRequestMetaData.
-