diff options
author | Dan Winship <danw@src.gnome.org> | 2008-10-01 21:12:24 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-10-01 21:12:24 +0000 |
commit | 91d657fb12308d51608dd3f6b6c4b3fa6b117bee (patch) | |
tree | f4934ecc67dd6055b8ab26c52d8fd740bbec807e /libsoup/soup-message-headers.h | |
parent | 7feac8b461560dbedd05f81395104a5616705f1c (diff) | |
download | libsoup-91d657fb12308d51608dd3f6b6c4b3fa6b117bee.tar.gz |
Update these to deal with RFC2231-encoded UTF-8 header params
* libsoup/soup-headers.c (soup_header_parse_param_list)
(soup_header_parse_semi_param_list): Update these to deal with
RFC2231-encoded UTF-8 header params
(soup_header_g_string_append_param): new utility method to do
parameters with quoted-strings (handling escaping) and RFC2231.
* libsoup/soup-auth-digest.c (get_authorization):
* libsoup/soup-auth-domain-basic.c (challenge):
* libsoup/soup-auth-domain-digest.c (challenge): use
soup_header_g_string_append_param so we handle escaping correctly
* libsoup/soup-message-headers.c
(soup_message_headers_get_content_type)
(soup_message_headers_set_content_type)
(soup_message_headers_get_content_disposition)
(soup_message_headers_set_content_disposition): New convenience
methods.
* tests/header-parsing.c (do_rfc2231_tests): new test of RFC2231
encoded header parsing in Content-Disposition.
* tests/get.c (get_url): use
soup_message_headers_get_content_type()
* docs/reference/libsoup-2.4-sections.txt: update
svn path=/trunk/; revision=1175
Diffstat (limited to 'libsoup/soup-message-headers.h')
-rw-r--r-- | libsoup/soup-message-headers.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsoup/soup-message-headers.h b/libsoup/soup-message-headers.h index 8ce4be6d..212fd5c2 100644 --- a/libsoup/soup-message-headers.h +++ b/libsoup/soup-message-headers.h @@ -82,4 +82,17 @@ SoupExpectation soup_message_headers_get_expectations (SoupMessageHeaders *hd void soup_message_headers_set_expectations (SoupMessageHeaders *hdrs, SoupExpectation expectations); +const char *soup_message_headers_get_content_type (SoupMessageHeaders *hdrs, + GHashTable **params); +void soup_message_headers_set_content_type (SoupMessageHeaders *hdrs, + const char *content_type, + GHashTable *params); + +gboolean soup_message_headers_get_content_disposition (SoupMessageHeaders *hdrs, + char **disposition, + GHashTable **params); +void soup_message_headers_set_content_disposition (SoupMessageHeaders *hdrs, + const char *disposition, + GHashTable *params); + #endif /* SOUP_MESSAGE_HEADERS_H */ |