| 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
| 2 | /* |
| 3 | * Copyright (C) 2001-2003, Ximian, Inc. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __SOUP_HEADERS_H__ |
| 7 | #define 1 |
| 8 | |
| 9 | #include <glib.h> |
| 10 | #include <libsoup/soup-message.h> |
| 11 | |
| 12 | G_BEGIN_DECLS |
| 13 | |
| 14 | /* HTTP Header Parsing */ |
| 15 | |
| 16 | SOUP_AVAILABLE_IN_2_26 |
| 17 | gboolean (const char *str, |
| 18 | int len, |
| 19 | SoupMessageHeaders *dest); |
| 20 | |
| 21 | SOUP_AVAILABLE_IN_2_4 |
| 22 | guint (const char *str, |
| 23 | int len, |
| 24 | SoupMessageHeaders *, |
| 25 | char **req_method, |
| 26 | char **req_path, |
| 27 | SoupHTTPVersion *ver); |
| 28 | |
| 29 | SOUP_AVAILABLE_IN_2_4 |
| 30 | gboolean (const char *status_line, |
| 31 | SoupHTTPVersion *ver, |
| 32 | guint *status_code, |
| 33 | char **reason_phrase); |
| 34 | |
| 35 | SOUP_AVAILABLE_IN_2_4 |
| 36 | gboolean (const char *str, |
| 37 | int len, |
| 38 | SoupMessageHeaders *, |
| 39 | SoupHTTPVersion *ver, |
| 40 | guint *status_code, |
| 41 | char **reason_phrase); |
| 42 | |
| 43 | /* Individual header parsing */ |
| 44 | SOUP_AVAILABLE_IN_2_4 |
| 45 | GSList * (const char *); |
| 46 | SOUP_AVAILABLE_IN_2_4 |
| 47 | GSList * (const char *, |
| 48 | GSList **unacceptable); |
| 49 | SOUP_AVAILABLE_IN_2_4 |
| 50 | void (GSList *list); |
| 51 | |
| 52 | SOUP_AVAILABLE_IN_2_4 |
| 53 | gboolean (const char *, |
| 54 | const char *token); |
| 55 | |
| 56 | SOUP_AVAILABLE_IN_2_4 |
| 57 | GHashTable * (const char *); |
| 58 | SOUP_AVAILABLE_IN_2_24 |
| 59 | GHashTable * (const char *); |
| 60 | SOUP_AVAILABLE_IN_2_4 |
| 61 | void (GHashTable *param_list); |
| 62 | |
| 63 | SOUP_AVAILABLE_IN_2_26 |
| 64 | void (GString *string, |
| 65 | const char *name, |
| 66 | const char *value); |
| 67 | SOUP_AVAILABLE_IN_2_30 |
| 68 | void (GString *string, |
| 69 | const char *name, |
| 70 | const char *value); |
| 71 | |
| 72 | G_END_DECLS |
| 73 | |
| 74 | #endif /* __SOUP_HEADERS_H__ */ |
| 75 | |