libsoup r973 - in branches/libsoup-2.4: . libsoup tests



Author: danw
Date: 2007-12-05 18:46:47 +0000 (Wed, 05 Dec 2007)
New Revision: 973
ViewCVS link: http://svn.gnome.org/viewcvs/libsoup?rev=973&view=rev

Added:
   branches/libsoup-2.4/libsoup/soup-message-headers.c
   branches/libsoup-2.4/libsoup/soup-message-headers.h
Modified:
   branches/libsoup-2.4/ChangeLog
   branches/libsoup-2.4/libsoup/Makefile.am
   branches/libsoup-2.4/libsoup/soup-auth.c
   branches/libsoup-2.4/libsoup/soup-auth.h
   branches/libsoup-2.4/libsoup/soup-connection-ntlm.c
   branches/libsoup-2.4/libsoup/soup-headers.c
   branches/libsoup-2.4/libsoup/soup-headers.h
   branches/libsoup-2.4/libsoup/soup-message-client-io.c
   branches/libsoup-2.4/libsoup/soup-message-handlers.c
   branches/libsoup-2.4/libsoup/soup-message-io.c
   branches/libsoup-2.4/libsoup/soup-message-private.h
   branches/libsoup-2.4/libsoup/soup-message-server-io.c
   branches/libsoup-2.4/libsoup/soup-message.c
   branches/libsoup-2.4/libsoup/soup-message.h
   branches/libsoup-2.4/libsoup/soup-server-auth.c
   branches/libsoup-2.4/libsoup/soup-server-auth.h
   branches/libsoup-2.4/libsoup/soup-server.c
   branches/libsoup-2.4/libsoup/soup-session.c
   branches/libsoup-2.4/tests/auth-test.c
   branches/libsoup-2.4/tests/dict.c
   branches/libsoup-2.4/tests/get.c
   branches/libsoup-2.4/tests/header-parsing.c
   branches/libsoup-2.4/tests/ntlm-test.c
   branches/libsoup-2.4/tests/simple-httpd.c
   branches/libsoup-2.4/tests/simple-proxy.c
Log:
	* libsoup/soup-message.h (SoupHTTPVersion): rename (from
	SoupHttpVersion)

	* libsoup/soup-message-headers.c: New opaque type representing
	message headers, and new methods that work on it. Uses an array
	rather than a hash table, to preserve header ordering as required
	by RFC 2616. (Also fixes the API wart that
	"soup_message_get_header", etc, did not actually take a
	SoupMessage.)

	* libsoup/soup-message.c: Kill off old header-manipulating
	methods.

	* libsoup/soup-headers.c (soup_headers_parse_request): return a
	guint rather than gboolean, so we can properly return
	SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED where appropriate. Also fix
	up HTTP-Version parsing to conform with the RFC.
	(soup_headers_parse_status_line): Likewise update HTTP-Version
	parsing.
	
	* libsoup/soup-message-server-io.c (parse_request_headers): set
	return status appropriately on parse errors

	* tests/header-parsing.c: update / add more tests

	* *.c: update





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]