/usr/include/cutter/soupcutter/soupcut-server.h is in libsoupcutter-dev 1.1.7-1.2ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __CUTTEST_SOUP_H__
#define __CUTTEST_SOUP_H__
#include <glib.h>
#include <libsoup/soup.h>
G_BEGIN_DECLS
/**
* SECTION: soupcut-server
* @title: Convenience HTTP server API
* @short_description: API to work as HTTP server.
* @see_also: <link
* linkend="cutter-Assertions-for-HTTP-client-and-server">
* Assertions for HTTP client and server</link>
*
* Useful wrappers for #SoupServer are provided.
*
*/
/**
* soupcut_server_take:
* @server: a #SoupServer.
*
* @server is shut down and unref when tear down.
*
* Returns: @server owned by Cutter. Don't g_object_unref() it.
*
* Since: 1.0.8
*/
SoupServer *soupcut_server_take (SoupServer *server);
/**
* soupcut_server_take_new:
* @context: a #GMainContext for the main loop of a new server.
*
* Creates and returns a new #SoupServer, whose context is @context.
* The server is shut down and unref when tear down.
*
* Returns: a new #SoupServer owned by Cutter. Don't g_object_unref() it.
*
* Since: 1.0.8
*/
SoupServer *soupcut_server_take_new (GMainContext *context);
/**
* soupcut_server_build_uri:
* @server: a #SoupServer.
* @path: a path.
*
* an URI is built and returned with the base uri of @server and @path.
*
* Returns: a new uri string owned by Cutter. Don't free it.
*
* Since: 1.0.8
*/
const gchar *soupcut_server_build_uri (SoupServer *server,
const gchar *path);
G_END_DECLS
#endif
/*
vi:ts=4:nowrap:ai:expandtab:sw=4
*/
|