4 Commits

Author SHA1 Message Date
Mikhail Svetkin
1bc95822cf Fix Qt code style
Change-Id: Ie2a5eb3cbfce8742ebdd5973078a665463306466
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
2018-07-20 08:28:13 +00:00
Jesus Fernandez
419e7a17f6 Return the server port in listen()
It allows knowing the server port in case the user chooses to use a
random port. In the previous implementation listen() was returning a
boolean value making it impossible to know the port number.

Change-Id: I73384188b3b2eb57816eb6c6c9a7ac1a511b7456
Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-07-19 15:28:32 +00:00
Mikhail Svetkin
1ba50028d2 Allow inherits from QAbstractHttpServer with custom private class
Change-Id: I35ba1c7cf460d51beecad3427976f1e8a710aef0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-07-16 15:19:48 +00:00
Jesus Fernandez
b24745265d Introduce Qt HttpServer framework
Small, Qt integrated framework for creating specialized http server.

Goals of the project:
- Create a framework allowing creation of a specialized web server
  running in non public networks (home and company networks, stealth
  or hidden services)
- Create an easy tool for developers to embed http servers in their
  apps.
- Playground to narrow down problems in Qt, related to network
  stack, but also to explore general usability.
- Potentially reduce code duplication in Qt.

Not goals:
- Standalone server, in particular not Apache or nginx replacement

Change-Id: I0d8b83e50992b9a95c88f4735539329279cf5425
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2018-07-16 14:36:08 +00:00