Qt HTTP 服务器?

编程入门 行业动态 更新时间:2024-10-13 00:33:20
本文介绍了Qt HTTP 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想编写一个小型 HTTP 服务器应用程序,它接收 HTTP GET 请求、处理它们并发出回复.由于应用程序的历史,我更愿意为此使用 Qt,但我只能找到另一个(更常见的)方向:向服务器发送请求并使用 QNetworkAccessManager.我需要的是像套接字这样的东西,当请求进来时,它会生成一个对象,我可以在其中选择该请求的 url 等,以便我可以发送适当的回复.

I'd like to write a small HTTP server application that receives HTTP GET requests, processes them and sends out a reply. Because of the history of the application I'd favor using Qt for this, but all I can find is the other (more common) direction: Send a request to a server and receive a reply using QNetworkAccessManager. What I need is something like a socket that, when a request comes in, produces an object where I can pick url etc. of this request, so I can send out an appropriate reply.

我是瞎了眼还是在 Qt 框架中没有这样的东西?如果是这样,您能推荐替代方案吗?

Am I just blind or is nothing like this in the Qt framework? If so, can you recommend alternatives?

推荐答案

我发现了这个github/vinipsmaker/tufao ,这是一个迟到的答案......不确定它是否有帮助.

I found this github/vinipsmaker/tufao , Its a late answer .. not sure if it helps.

更多推荐

Qt HTTP 服务器?

本文发布于:2023-07-14 10:20:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104092.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:服务器   Qt   HTTP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!