Merge changes for NSURLSession from EngageHub (formerly Brainstorm).

This commit is contained in:
Richard Frith-Macdonald 2020-11-29 06:57:47 -05:00
parent d015cebbf3
commit 1b7bf26bea
70 changed files with 7980 additions and 192 deletions

View file

@ -283,6 +283,25 @@ typedef NSUInteger NSURLRequestCachePolicy;
@end
@protocol GSLogDelegate;
@interface NSMutableURLRequest (GNUstep)
/** Sets a flag to turn on low level debug logging for this request and the
* corresponding response. The previous vaue of the setting is returned.
*/
- (int) setDebug: (int)d;
/** Sets a delegate object to override logging of low level I/O of the
* request as it is sent and the corresponding response as it arrives.<br />
* The delegate object is not retained, so it is the responsibility of the
* caller to ensure that it persists until all I/O has completed.<br />
* This has no effect unless debug is turned on, but if debug is turned on
* it permits the delegate to override the default behavior of writing the
* data to stderr.
*/
- (id<GSLogDelegate>) setDebugLogDelegate: (id<GSLogDelegate>)d;
@end
#if defined(__cplusplus)
}
#endif