1.1 --- a/BLIP/BLIPRequest.h Fri May 23 17:37:36 2008 -0700
1.2 +++ b/BLIP/BLIPRequest.h Sat May 24 17:25:06 2008 -0700
1.3 @@ -39,8 +39,8 @@
1.4
1.5 /** Sends this request over its connection.
1.6 (Actually, the connection queues it to be sent; this method always returns immediately.)
1.7 - If this request has not been assigned to a connection, an exception will be raised.
1.8 - Its matching response object will be returned, or nil if the request couldn't be sent. */
1.9 + Its matching response object will be returned, or nil if the request couldn't be sent.
1.10 + If this request has not been assigned to a connection, an exception will be raised. */
1.11 - (BLIPResponse*) send;
1.12
1.13 /** Does this request not need a response?
1.14 @@ -58,8 +58,9 @@
1.15 It will prevent a default empty response from being sent upon return from the request handler. */
1.16 - (void) deferResponse;
1.17
1.18 -/** Shortcut to respond to this request with the given data. */
1.19 -- (void) respondWithData: (NSData*)data;
1.20 +/** Shortcut to respond to this request with the given data.
1.21 + The contentType, if not nil, is stored in the "Content-Type" property. */
1.22 +- (void) respondWithData: (NSData*)data contentType: (NSString*)contentType;
1.23
1.24 /** Shortcut to respond to this request with the given string (which will be encoded in UTF-8). */
1.25 - (void) respondWithString: (NSString*)string;