/usr/include/libsoup-2.4/libsoup/soup-headers.h is in libsoup2.4-dev 2.44.2-1ubuntu2.
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 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2001-2003, Ximian, Inc.
*/
#ifndef SOUP_HEADERS_H
#define SOUP_HEADERS_H 1
#include <glib.h>
#include <libsoup/soup-message.h>
G_BEGIN_DECLS
/* HTTP Header Parsing */
SOUP_AVAILABLE_IN_2_26
gboolean soup_headers_parse (const char *str,
int len,
SoupMessageHeaders *dest);
guint soup_headers_parse_request (const char *str,
int len,
SoupMessageHeaders *req_headers,
char **req_method,
char **req_path,
SoupHTTPVersion *ver);
gboolean soup_headers_parse_status_line (const char *status_line,
SoupHTTPVersion *ver,
guint *status_code,
char **reason_phrase);
gboolean soup_headers_parse_response (const char *str,
int len,
SoupMessageHeaders *headers,
SoupHTTPVersion *ver,
guint *status_code,
char **reason_phrase);
/* Individual header parsing */
GSList *soup_header_parse_list (const char *header);
GSList *soup_header_parse_quality_list (const char *header,
GSList **unacceptable);
void soup_header_free_list (GSList *list);
gboolean soup_header_contains (const char *header,
const char *token);
GHashTable *soup_header_parse_param_list (const char *header);
SOUP_AVAILABLE_IN_2_24
GHashTable *soup_header_parse_semi_param_list (const char *header);
void soup_header_free_param_list (GHashTable *param_list);
SOUP_AVAILABLE_IN_2_26
void soup_header_g_string_append_param (GString *string,
const char *name,
const char *value);
SOUP_AVAILABLE_IN_2_30
void soup_header_g_string_append_param_quoted (GString *string,
const char *name,
const char *value);
G_END_DECLS
#endif /*SOUP_HEADERS_H*/
|