* Added MYReturnError.
* Better iPhone support in ExceptionUtils.
* Make sure "All Tests Passed/Failed" message is always logged.
5 // Created by Jens Alfke on 4/28/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import <Foundation/Foundation.h>
12 @interface NSURL (MYUtilities)
14 /** Smart/lenient version of +URLWithString:, for use with user-entered URLs.
15 - Strips out any whitespace or newlines
16 - Removes surrounding "<...>"
17 - Adds a default scheme like http: if necessary, if one is provided
18 - Checks against a list of allowed schemes, if one is provided */
19 + (NSURL*) my_URLWithLenientString: (NSString*)string
20 defaultScheme: (NSString*)defaultScheme
21 allowedSchemes: (NSArray*)allowedSchemes;
25 @interface NSHTTPURLResponse (MYUtilities)
27 - (NSError*) HTTPError;
31 extern NSString* const MyHTTPErrorDomain;