docs: public static Function<IHTTPSession, Response> syncHandler(final ExecutorService pool, final String mimeType, @javax.annotation.Nonnull final Consumer<OutputStream> logic, final boolean async) {
      return session -> {
        try (@javax.annotation.Nonnull ByteArrayOutputStream out = new ByteArrayOutputStream()) {
          logic.accept(out);
          out.flush();
          final byte[] bytes = out.toByteArray();
          return NanoHTTPD.newFixedLengthResponse(Response.Status.OK, mimeType, new ByteArrayInputStream(bytes), bytes.length);
        } catch (@javax.annotation.Nonnull final IOException e) {
          e.printStackTrace();
          throw new RuntimeException(e);
        }
      };
    }