public NettyHttpClientResponse execute(Channel ch, long incompleteCallTimeoutMillis) throws InterruptedException, ExecutionException, TimeoutException { return executeNettyHttpClientCall(ch, build(), incompleteCallTimeoutMillis, pipelineAdjuster); } }
public static NettyHttpClientResponse executeRequest( FullHttpRequest request, int port, long incompleteCallTimeoutMillis ) throws InterruptedException, TimeoutException, ExecutionException { return executeRequest(request, port, incompleteCallTimeoutMillis, null); }
public NettyHttpClientResponse execute(int port, long incompleteCallTimeoutMillis) throws Exception { return executeRequest(build(), port, incompleteCallTimeoutMillis, pipelineAdjuster); }
public RequestAndResponseFilterTestConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
public static String generatePayload(int payloadSize) { return generatePayload(payloadSize, payloadDictionary); }
private void assertTooLongFrameErrorResponse(NettyHttpClientResponse serverResponse, ApiError expectedApiError) throws IOException { verifyErrorReceived(serverResponse.payload, serverResponse.statusCode, expectedApiError); }
public static ChannelHandlerContextMocks mockChannelHandlerContextWithTraceInfo() { return mockChannelHandlerContextWithTraceInfo("123"); }
public static CompletableFuture<NettyHttpClientResponse> setupNettyHttpClientResponseHandler(Channel ch) { return setupNettyHttpClientResponseHandler(ch, null); }
public static NettyHttpClientRequestBuilder request() { return new NettyHttpClientRequestBuilder(); }
private void verifyBodyEqualityMinusChunkMetadata(String body1, String body2) { String body1MinusChunkMeta = extractFullBodyFromChunks(body1); String body2MinusChunkMeta = extractFullBodyFromChunks(body2); assertThat(body1MinusChunkMeta).isEqualTo(body2MinusChunkMeta); }
public NettyHttpClientRequestBuilder withHeaders(Iterable<Pair<String, Object>> headers) { for (Pair<String, Object> header : headers) { withHeader(header.getKey(), header.getValue()); } return this; }
public AsyncProcessingTestConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
private static String generatePayloadOfSizeInBytes(String prefix, int length) { return prefix + generatePayload(length - prefix.length()); }
public RequestSizeValidationConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
ErrorResponsePayloadTestingServerConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
public SSLTestConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
public TimeoutsAndProxyTestServerConfig(long workerChannelIdleTimeoutMillis, long cfTimeoutMillis, long incompleteCallTimeoutMillis) { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } this.workerChannelIdleTimeoutMillis = workerChannelIdleTimeoutMillis; this.cfTimeoutMillis = cfTimeoutMillis; this.incompleteCallTimeoutMillis = incompleteCallTimeoutMillis; }
public RequestAndResponseFilterTestConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
public ResponsePayloadCompressionServerConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }
public MultipartTestConfig() { try { port = ComponentTestUtils.findFreePort(); } catch (IOException e) { throw new RuntimeException("Couldn't allocate port", e); } }