use of io.servicetalk.http.api.HttpRequestMetaData in project servicetalk by apple.
the class HttpRequestDecoderTest method assertRequestLine.
private static HttpRequestMetaData assertRequestLine(HttpRequestMethod expectedMethod, String expectedRequestTarget, HttpProtocolVersion expectedVersion, EmbeddedChannel channel) {
HttpRequestMetaData request = channel.readInbound();
assertThat(request.method(), equalTo(expectedMethod));
assertThat(request.requestTarget(), equalTo(expectedRequestTarget));
assertThat(request.version(), equalTo(expectedVersion));
return request;
}
Aggregations