Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个可以使用 firefox 连接的 Vert.x 服务器。当用户请求页面时,服务器应该能够获取 html 并将其返回给用户。 获取 HTML 数据并将其返回给用户的最佳方法是什么?我应该将 html 作为字符串还是作为文件返回?它还应该为任何嵌入的 js/css/images 提供服务。
vertx 中已经有一个示例,请查看此链接。在此示例中,使用了名为 mod-web-server 的模块。