|
rpm-build |
4f3c61 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
rpm-build |
4f3c61 |
/*
|
|
rpm-build |
4f3c61 |
* Copyright (C) 2005 Novell, Inc.
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#ifndef SOUP_MESSAGE_HEADERS_H
|
|
rpm-build |
4f3c61 |
#define SOUP_MESSAGE_HEADERS_H 1
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#include <libsoup/soup-types.h>
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
G_BEGIN_DECLS
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef struct SoupMessageHeaders SoupMessageHeaders;
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
GType soup_message_headers_get_type (void);
|
|
rpm-build |
4f3c61 |
#define SOUP_TYPE_MESSAGE_HEADERS (soup_message_headers_get_type ())
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef enum {
|
|
rpm-build |
4f3c61 |
SOUP_MESSAGE_HEADERS_REQUEST,
|
|
rpm-build |
4f3c61 |
SOUP_MESSAGE_HEADERS_RESPONSE,
|
|
rpm-build |
4f3c61 |
SOUP_MESSAGE_HEADERS_MULTIPART
|
|
rpm-build |
4f3c61 |
} SoupMessageHeadersType;
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
SoupMessageHeaders *soup_message_headers_new (SoupMessageHeadersType type);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_free (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_append (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name,
|
|
rpm-build |
4f3c61 |
const char *value);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_replace (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name,
|
|
rpm-build |
4f3c61 |
const char *value);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_remove (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_clear (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_36
|
|
rpm-build |
4f3c61 |
void soup_message_headers_clean_connection_headers (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#ifndef SOUP_DISABLE_DEPRECATED
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
SOUP_DEPRECATED_IN_2_28_FOR ("soup_message_headers_get_one or soup_message_headers_get_list")
|
|
rpm-build |
4f3c61 |
const char *soup_message_headers_get (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name);
|
|
rpm-build |
4f3c61 |
#endif
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_28
|
|
rpm-build |
4f3c61 |
const char *soup_message_headers_get_one (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_28
|
|
rpm-build |
4f3c61 |
const char *soup_message_headers_get_list (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_50
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_header_contains (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name,
|
|
rpm-build |
4f3c61 |
const char *token);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_50
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_header_equals (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *name,
|
|
rpm-build |
4f3c61 |
const char *value);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef void (*SoupMessageHeadersForeachFunc)(const char *name,
|
|
rpm-build |
4f3c61 |
const char *value,
|
|
rpm-build |
4f3c61 |
gpointer user_data);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_foreach (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
SoupMessageHeadersForeachFunc func,
|
|
rpm-build |
4f3c61 |
gpointer user_data);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_50
|
|
rpm-build |
4f3c61 |
SoupMessageHeadersType soup_message_headers_get_headers_type (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef struct {
|
|
rpm-build |
4f3c61 |
/*< private >*/
|
|
rpm-build |
4f3c61 |
gpointer dummy[3];
|
|
rpm-build |
4f3c61 |
} SoupMessageHeadersIter;
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_iter_init (SoupMessageHeadersIter *iter,
|
|
rpm-build |
4f3c61 |
SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_iter_next (SoupMessageHeadersIter *iter,
|
|
rpm-build |
4f3c61 |
const char **name,
|
|
rpm-build |
4f3c61 |
const char **value);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/* Specific headers */
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef enum {
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_UNRECOGNIZED,
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_NONE,
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_CONTENT_LENGTH,
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_EOF,
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_CHUNKED,
|
|
rpm-build |
4f3c61 |
SOUP_ENCODING_BYTERANGES
|
|
rpm-build |
4f3c61 |
} SoupEncoding;
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
SoupEncoding soup_message_headers_get_encoding (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_encoding (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
SoupEncoding encoding);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
goffset soup_message_headers_get_content_length (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_content_length (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
goffset content_length);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef enum {
|
|
rpm-build |
4f3c61 |
SOUP_EXPECTATION_UNRECOGNIZED = (1 << 0),
|
|
rpm-build |
4f3c61 |
SOUP_EXPECTATION_CONTINUE = (1 << 1)
|
|
rpm-build |
4f3c61 |
} SoupExpectation;
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
SoupExpectation soup_message_headers_get_expectations (SoupMessageHeaders *hdrs);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_4
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_expectations (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
SoupExpectation expectations);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
typedef struct {
|
|
rpm-build |
4f3c61 |
goffset start;
|
|
rpm-build |
4f3c61 |
goffset end;
|
|
rpm-build |
4f3c61 |
} SoupRange;
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_get_ranges (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
goffset total_length,
|
|
rpm-build |
4f3c61 |
SoupRange **ranges,
|
|
rpm-build |
4f3c61 |
int *length);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_free_ranges (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
SoupRange *ranges);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_ranges (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
SoupRange *ranges,
|
|
rpm-build |
4f3c61 |
int length);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_range (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
goffset start,
|
|
rpm-build |
4f3c61 |
goffset end);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_get_content_range (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
goffset *start,
|
|
rpm-build |
4f3c61 |
goffset *end,
|
|
rpm-build |
4f3c61 |
goffset *total_length);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_content_range (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
goffset start,
|
|
rpm-build |
4f3c61 |
goffset end,
|
|
rpm-build |
4f3c61 |
goffset total_length);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
const char *soup_message_headers_get_content_type (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
GHashTable **params);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_content_type (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *content_type,
|
|
rpm-build |
4f3c61 |
GHashTable *params);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
gboolean soup_message_headers_get_content_disposition (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
char **disposition,
|
|
rpm-build |
4f3c61 |
GHashTable **params);
|
|
rpm-build |
4f3c61 |
SOUP_AVAILABLE_IN_2_26
|
|
rpm-build |
4f3c61 |
void soup_message_headers_set_content_disposition (SoupMessageHeaders *hdrs,
|
|
rpm-build |
4f3c61 |
const char *disposition,
|
|
rpm-build |
4f3c61 |
GHashTable *params);
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
G_END_DECLS
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#endif /* SOUP_MESSAGE_HEADERS_H */
|