code: private static BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> bodySendDelegate(final HttpRequest restRequest) {
          BiFunction<HttpClientRequest, NettyOutbound, Publisher<Void>> sendDelegate = (reactorNettyRequest, reactorNettyOutbound) -> {
              for (HttpHeader header : restRequest.headers()) {
                  reactorNettyRequest.header(header.name(), header.value());
              }
              if (restRequest.body() != null) {
                  Flux<ByteBuf> nettyByteBufFlux = restRequest.body().map(Unpooled::wrappedBuffer);
                  return reactorNettyOutbound.send(nettyByteBufFlux);
              } else {
                  return reactorNettyOutbound;
              }
          };
          return sendDelegate;
      }
docs: Delegate to send the request content.
  
  @param restRequest the Rest request contains the body to be sent
  @return a delegate upon invocation sets the request body in reactor-netty outbound object