Lines Matching refs:NSString
34 - (NSString *)multipartBoundary;
37 - (NSData *)formDataForKey:(NSString *)key value:(NSString *)value; argument
38 - (NSData *)formDataForFileContents:(NSData *)contents name:(NSString *)name; argument
39 - (NSData *)formDataForFile:(NSString *)file name:(NSString *)name; argument
47 - (NSString *)multipartBoundary { argument
49 return [NSString stringWithFormat:@"---------------------------%08X%08X",
54 - (NSData *)formDataForKey:(NSString *)key value:(NSString *)value { argument
55 NSString *escaped =
57 NSString *fmt =
59 NSString *form = [NSString stringWithFormat:fmt, boundary_, escaped, value];
65 - (NSData *)formDataForFileContents:(NSData *)contents name:(NSString *)name { argument
67 NSString *escaped =
69 NSString *fmt = @"--%@\r\nContent-Disposition: form-data; name=\"%@\"; "
71 NSString *pre = [NSString stringWithFormat:fmt, boundary_, escaped];
80 - (NSData *)formDataForFile:(NSString *)file name:(NSString *)name { argument
130 - (void)addFileAtPath:(NSString *)path name:(NSString *)name { argument
135 - (void)addFileContents:(NSData *)data name:(NSString *)name { argument
153 [req setValue:[NSString stringWithFormat:@"multipart/form-data; boundary=%@",
158 NSString *key;
171 NSString *name = [fileNames objectAtIndex:i];
175 // The object can be either the path to a file (NSString) or the contents
185 NSString *epilogue = [NSString stringWithFormat:@"\r\n--%@--\r\n", boundary_];