summaryrefslogtreecommitdiffstats
path: root/src/libsoup-test.c
blob: 8faed28a69fcf8ee7cf165f3a25cdcc116b72d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * This file is part of MXE. See LICENSE.md for licensing information.
 */

#include <libsoup/soup.h>

int main()
{
    SoupServer *server;
    GError *error;

    server = soup_server_new (SOUP_SERVER_SERVER_HEADER, "simple-httpd ", SOUP_SERVER_TLS_CERTIFICATE, NULL, NULL);
    soup_server_listen_all (server, 1234, SOUP_SERVER_LISTEN_HTTPS, &error);

    return 0;
}