@Test public void createContainerRequest_testHttpMethodAndHeaders() { Headers headers = Headers.fromMap(ImmutableMap.of("key_one", "value_one", "key_two", "value_two")); InputEvent inputEvent = new DefaultInputEvent() .setHeaders(headers) .getInputEvent(); FnRequestHandler.WrappedInput wrappedInput = new FnRequestHandler.WrappedInput(inputEvent, defaultBody); JRestlessContainerRequest containerRequest = requestHandler.createContainerRequest(wrappedInput); assertEquals("GET", containerRequest.getHttpMethod()); assertEquals(ImmutableMap.of("key-one", singletonList("value_one"), "key-two", singletonList("value_two")), containerRequest.getHeaders()); }
@Override public JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput) { InputEvent inputEvent = wrappedInput.inputEvent; InputStream entityStream = wrappedInput.stream; requireNonNull(inputEvent); return new DefaultJRestlessContainerRequest( getRequestAndBaseUri(inputEvent), inputEvent.getMethod(), entityStream, this.expandHeaders(inputEvent.getHeaders().getAll())); }
FnRequestHandler extends
	SimpleRequestHandler<FnRequestHandler.WrappedInput, FnRequestHandler.WrappedOutput> { @Override public JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput) { InputEvent inputEvent = wrappedInput.inputEvent; InputStream entityStream = wrappedInput.stream; requireNonNull(inputEvent); return new DefaultJRestlessContainerRequest( getRequestAndBaseUri(inputEvent), inputEvent.getMethod(), entityStream, this.expandHeaders(inputEvent.getHeaders().getAll())); } }
FnRequestHandler extends
	SimpleRequestHandler<FnRequestHandler.WrappedInput, FnRequestHandler.WrappedOutput> { @Override public JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput) { InputEvent inputEvent = wrappedInput.inputEvent; InputStream entityStream = wrappedInput.stream; requireNonNull(inputEvent); return new DefaultJRestlessContainerRequest( getRequestAndBaseUri(inputEvent), inputEvent.getMethod(), entityStream, this.expandHeaders(inputEvent.getHeaders().getAll())); }  }
FnRequestHandler extends
	SimpleRequestHandler<FnRequestHandler.WrappedInput, FnRequestHandler.WrappedOutput> { @Override public JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput) { InputEvent inputEvent = wrappedInput.inputEvent; InputStream entityStream = wrappedInput.stream; requireNonNull(inputEvent); return new DefaultJRestlessContainerRequest( getRequestAndBaseUri(inputEvent), inputEvent.getMethod(), entityStream, this.expandHeaders(inputEvent.getHeaders().getAll())); }  @Override JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput); RequestAndBaseUri getRequestAndBaseUri(InputEvent inputEvent); @FnConfiguration void setRuntimeContext(RuntimeContext rctx); final OutputEvent handleRequest(InputEvent inputEvent); }
FnRequestHandler extends
	SimpleRequestHandler<FnRequestHandler.WrappedInput, FnRequestHandler.WrappedOutput> { @Override public JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput) { InputEvent inputEvent = wrappedInput.inputEvent; InputStream entityStream = wrappedInput.stream; requireNonNull(inputEvent); return new DefaultJRestlessContainerRequest( getRequestAndBaseUri(inputEvent), inputEvent.getMethod(), entityStream, this.expandHeaders(inputEvent.getHeaders().getAll())); }  @Override JRestlessContainerRequest createContainerRequest(WrappedInput wrappedInput); RequestAndBaseUri getRequestAndBaseUri(InputEvent inputEvent); @FnConfiguration void setRuntimeContext(RuntimeContext rctx); final OutputEvent handleRequest(InputEvent inputEvent);  }