All Downloads are FREE. Search and download functionalities are using the official Maven repository.

objc.Sanitizer-header.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
#import 

{{>licenceInfo}}

extern NSString * {{classPrefix}}PercentEscapedStringFromString(NSString *string);

extern NSString * const k{{classPrefix}}ApplicationJSONType;

@protocol {{classPrefix}}Sanitizer 

/**
 * Sanitize object for request
 *
 * @param object The query/path/header/form/body param to be sanitized.
 */
- (id) sanitizeForSerialization:(id) object;

/**
 * Convert parameter to NSString
 */
- (NSString *) parameterToString: (id) param;

/**
 * Convert date to NSString
 */
+ (NSString *)dateToString:(id)date;

/**
 * Detects Accept header from accepts NSArray
 *
 * @param accepts NSArray of header
 *
 * @return The Accept header
 */
-(NSString *) selectHeaderAccept:(NSArray *)accepts;

/**
 * Detects Content-Type header from contentTypes NSArray
 *
 * @param contentTypes NSArray of header
 *
 * @return The Content-Type header
 */
-(NSString *) selectHeaderContentType:(NSArray *)contentTypes;

@end

@interface {{classPrefix}}Sanitizer : NSObject <{{classPrefix}}Sanitizer>



@end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy