docs: public static Middleware<AsyncHandler<?>, AsyncHandler<Response<ByteString>>> serialize(
        Serializer serializer) {
  
      return inner -> inner
          .map(Middlewares::ensureResponse)
          .flatMapSync(resp -> ctx -> serializePayload(serializer, ctx.request(), resp));
    }