Project: QGIS

Version: 3.12

Feature: QGIS Development Server Application

QGIS Development HTTP Server

This is a small independent command-line application that implements a minimal HTTP development server for QGIS Server.

It can be useful when developing and testing QGIS Server projects, modules, and plugins without requiring a full webserver/FCGI stack.

The application is completely independent it does not introduce any change in the existing QGIS code, for this reason, I'd like to merge it for 3.12 even if we are in feature freeze.

```bash Usage: qgis_mapserver [options] [address:port] QGIS Development Server

Options: -h, --help Displays this help. -v, --version Displays version information. -l Sets log level (default: 0) 0: INFO 1: WARNING 2: CRITICAL -p Path to a QGIS project file (.qgs or .qgz), if specified it will override the query string MAP argument and the QGIS_PROJECT_FILE environment variable

Arguments: addressAndPort Listen to address and port (default: "localhost:8000") address and port can also be specified with the environment variables QGIS_SERVER_ADDRESS and QGIS_SERVER_PORT ```

Sample output: bash QGIS Development Server listening on http://localhost:8000 CTRL+C to exit 127.0.0.1 [lun gen 20 15:16:41 2020] 5140 103ms "GET /wfs3/?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test_project.qgs HTTP/1.1" 200 127.0.0.1 [lun gen 20 15:16:41 2020] 3298 2ms "GET /wfs3/static/jsonFormatter.min.js HTTP/1.1" 200 127.0.0.1 [lun gen 20 15:16:41 2020] 1678 3ms "GET /wfs3/static/jsonFormatter.min.css HTTP/1.1" 200 127.0.0.1 [lun gen 20 15:16:41 2020] 1310 5ms "GET /wfs3/static/style.css HTTP/1.1" 200 127.0.0.1 [lun gen 20 15:16:43 2020] 4285 13ms "GET /wfs3/collections?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test_project.qgs HTTP/1.1" 200

This feature was developed by Alessandro Pasotti